npm: “Cannot find module internal/errors”

前端 未结 3 881
别跟我提以往
别跟我提以往 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:04

    I had the same problem, and I solve it:

    1. uninstall node and npm, do as this answer.

    2. then install node

      brew install node
      

      and npm will also be installed.

提交回复
热议问题