NPM – 如何使用项目.npmrc设置发布模块
我有一个项目特定的npmrc,我用以下设置添加到我的项目的根目录
registry=<internal registry> _auth = <auth token> email = <email id>
然后我跑
npm发布
但我仍然得到以下错误。
+ npm publish npm ERR! need auth auth and email required for publishing npm ERR! need auth You need to authorize this machine using `npm adduser`
我不知道为什么会发生这种情况。 我的猜测是,它不读我的项目具体npmrc。