npm package and problems

Register an account

npm

contract

Open the terminal in the current folder of the package you need to upload, and prepare to log in to the account you just registered (existing). Login account:
Then npm adduser
enter the account number, password, and email address according to the prompts; after
inputting, you will be prompted that your current source is Where, some may install cnpm, then it will be in another source, then you need to switch to https://registry.npmjs.orgthe source;Unify the problem below
release:npm publish


E403 problem and modify source

If the source is incorrect, you need to switch the source

  • View source:npm config get registry
  • Switch source method one:npm config set registry https://registry.npmjs.org
  • Switch source method two:nrm use npm

If the following error is reported, 是没有验证邮箱
解决: Go to the web page again, log in to the email to verify, and it will be fine

Please add a picture description

Guess you like

Origin blog.csdn.net/sxs7970/article/details/122615520