项目中经常 npm install,npm init啥的,那么如何上传自己的包到npm上呢。
键入 npm publish
报错:
npm ERR! publish Failed PUT 403npm ERR! code E403npm ERR! You do not have permission to publish "npm_test". Are you logged in as the correct user? : npm_testnpm 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.0added 1 package in 2.764s