Getting Error 402 while publishing package using npm

后端 未结 4 2270
不思量自难忘°
不思量自难忘° 2021-02-18 12:46

I am using npm version 2.15.11 and node version 4.7.2 on ubuntu 14.04. I want to publish my packages. when i use the command:

npm publish

i am geting the error:

4条回答
  •  眼角桃花
    2021-02-18 13:45

    In addition to the command line option provided by bersling, you can merge the following into your package.json:

    {
      "publishConfig": {
        "access": "public"
      }
    }
    

    Reference in npm documentation. Useful when you want to template it into your package manifests and not think about it.

    P.S. had one of those old OpenId accounts, forgot to update it before it was nuked, no longer have the ability to add this as a comment to bersling's reply, which is where I feel this really belongs.

提交回复
热议问题