我已经在npmjs.com上创建了一个帐户,我也正在使用命令行(linux)的how-to-npm教程。我正处于应该发布测试模块的阶段。不过,我不断收到错误:为什么我无法将我的软件包发布到npmjs
You must sign up for private packages : @zentech/node
这些都是错误时NPM发布
npm ERR! publish Failed PUT 402
npm ERR! Linux 4.10.0-33-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "publish"
npm ERR! node v4.7.2
npm ERR! npm v3.5.2
npm ERR! code E402
npm ERR! You must sign up for private packages : @zentech/node
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! /home/george/node/npm-debug.log
我的package.json文件
{
"name": "@zentech/node",
"version": "1.0.1",
"main": "index.js",
"preferGlobal": true,
"scripts": {
"test": "node test.js"
},
"author": "",
"license": "ISC",
"description": "",
"repository": "http://github.com/zentech/node"
}
没有人知道为什么这个错误吗?感谢
这个错误怎么样不清楚?看起来你还没有注册私人包裹。如果你想使用私人包,你必须注册。 –
chech这个链接https://stackoverflow.com/questions/41981686/getting-error-402-while-publishing-package-using-npm – skr