为什么我无法发布我的包到npmjs
我在npmjs.com上创build了一个帐户,我也正在从命令行(linux)跟随how-to-npm教程。 我正处于发布testing模块的阶段。 但我不断收到错误:
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" }
有谁知道为什么错误? 谢谢
这很清楚:
您必须注册私人包裹:@ zentech / node
所以你要么注册,要么把你的包的名字从@zentech/node
一个公共名字,比如zentech-node
。