search

Home  >  Q&A  >  body text

node.js - npm更新后出错,求解答

第一次更新后出现错误,之后再更新就一直出现这样的错误

找不到这个模块可是npm install -g重新安装还是出现同样的错误,请问要怎么办?

大家讲道理大家讲道理2876 days ago493

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-04-17 16:29:32

    Provide an idea on how to do it, Google and Baidu.

    The path of the node in the system variable is wrong.

    • npm-cli should be there, but it can’t be found based on the path. Take a look at its current path pointing to

    • Then modify the path, provide a reference, and change it to C:Program Filesnodejs try it

    The fastest solution is to reinstall, but you will learn a lot if you are willing to spend time thinking about it.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 16:29:32

    Too lazy to worry, I just uninstalled nodejs, deleted the directory and reinstalled it

    reply
    0
  • Cancelreply