在您的 package.json 中设置 "private": true 以防止它被发布,或 "publishConfig":{"registry":"http://my-internal-registry.local"} 以强制它仅发布到您的内部/私人注册表。
package.json
"private": true
"publishConfig":{"registry":"http://my-internal-registry.local"}
有关 package.json 文件中内容的更多信息,请参阅 package.json。