Can't install any packages in Node.js using “npm install”

前端 未结 6 1966
忘了有多久
忘了有多久 2020-12-01 11:36

I\'m new to Node.js, and I\'m going through a few tutorials. For some reason, I can\'t install any new node modules.

I am using: Mac OSX 10.7.4,

6条回答
  •  佛祖请我去吃肉
    2020-12-01 12:34

    I found the there is a certificate expired issue with:

    npm set registry https://registry.npmjs.org/
    

    So I made it http, not https :-

    npm set registry http://registry.npmjs.org/
    

    And have no problems so far.

提交回复
热议问题