NPM not working (Cannot find module 'internal/fs' - nodejs)

后端 未结 4 894
名媛妹妹
名媛妹妹 2021-01-12 21:01

NPM error on update. I recently update to Node version 7.x. Now npm is not working.

I am unable to locate the error, it may be due to -
npm ERR! Ca

4条回答
  •  一向
    一向 (楼主)
    2021-01-12 21:08

    According to this thread, updating npm to version 4 will solve your problem, try:

    npm i -g npm@4
    

    If this doesn't work, try:

    ~/.n/n/versions/node/7.0.0/bin/npm i -g npm@4
    

提交回复
热议问题