Error reported during NPM package publishing process - `npm ERR! Unexpected token < in JSON at position 0 while parsing near '<!DOCTYPE HTML P

1. Abnormal error reporting process: During the package sending process, the following error occurred when performing npm login
Insert image description here
2. Reason for error reporting: npm's mirror source is abnormal and the agent has not been set.

3. Solve

npm config get proxy
npm config get https-proxy
npm config set registry https://registry.npmjs.org

Guess you like

Origin blog.csdn.net/qq_37600506/article/details/130278153