npm: “Cannot find module internal/errors”

前端 未结 3 880
别跟我提以往
别跟我提以往 2021-02-19 11:50

On a MacBook with the latest version of NodeJS, I am trying to update npm:

npm install npm@latest

The error message is:

npm ERR         


        
3条回答
  •  时光说笑
    2021-02-19 12:23

    I had the same issue, the above answer did not work.

    I had old versions in node_modules.

    I simply deleted everything in node_modules and then ran:

    npm install npm@latest -g

提交回复
热议问题