标签:ssi main ref author dex led log name package
项目中经常 npm install,npm init啥的,那么如何上传自己的包到npm上呢。
键入 npm publish
报错:
npm ERR! publish Failed PUT 403
npm ERR! code E403
npm ERR! You do not have permission to publish "npm_test". Are you logged in as the correct user? : npm_test
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kanewang\AppData\Roaming\npm-cache\_logs\2018-12-12T05_30_31_284Z-debug.log
{
"name": "kane_test",
"version": "1.0.0",
"description": "kane test",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "kane",
"license": "ISC"
}
#输出结果
+ kane_test@1.0.0
+ kane_test@1.0.0
added 1 package in 2.764s
标签:ssi main ref author dex led log name package
原文地址:https://www.cnblogs.com/primadonna/p/10107865.html