npm publish错误
最近在使用npm 上传包的时候,上传了好几次都没有成功。看见403错误,就去百度。
找不到原因,而来仔细一看,原来是没有验证邮箱。
npm ERR! you must verify your email before publishing a new package
C:\Users\yong\Desktop\zhang\node\day3\smallcalc33>npm publish npm ERR! publish Failed PUT 403 npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\no de_modules\\npm\\bin\\npm-cli.js" "publish" npm ERR! node v6.9.5 npm ERR! npm v3.10.10 npm ERR! code E403 npm ERR! you must verify your email before publishing a new package: https://www.n pmjs.com/email-edit : smallcalc33dddddff npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! C:\Users\yong\Desktop\zhang\node\day3\smallcalc33\npm-debug.log
接着把邮件验证成功啦,再次上传。又出现问题啦。报了一个400的错误。然后把项目名字(驼峰命名)换成小写的,
最后上传成功了。