在Windows10中重新安装节点后找不到模块'进程-nextick-args'npm错误.js



我从官方网站下载了 Node.js(4.4.5 LTS)并将其安装到我的 Windows10 中更新节点,发现 npm 不起作用(节点工作)。我通过在"删除"模式下安装节点来卸载节点,然后重新安装,但错误仍然存在。npm -v 上的错误如下:``` 模数.js:327 投掷错误; ^

Error: Cannot find module 'process-nextick-args'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> 
(C:Users<my-name>AppDataRoamingnpmnode_modulesnp
    mnode_modulesreadable-streamlib_stream_readable.js:6:23)
        at Module._compile (module.js:409:26)
        at Object.Module._extensions..js (module.js:416:10)
        at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)

Per suggestions from [this link][2] I have edited the PATH of Environmental Variables (in both User and System) to include: C:\Users\\AppData\Roamingpm and C:\Program Filesodejs With 'which npm' it produced: /c/Program Files/nodejs/npm With 'whereis npm' it showed: npm:/cygdrive/c/Program Files/nodejs/npm /cygdrive/c/Program Files/nodejs/npm.cmd With 'which node' I got /c/Program Files/nodejs/node```

任何建议将不胜感激。

链接2:在Windows 10上安装Node.js(和npm)

根据此链接,有必要从"本地"目录中删除节点和node_modules,以便完全删除节点(和 npm)。认为我只需要删除旧的 npm 遗物来解决有关"错误:找不到模块'进程-nextick-args'的错误,我尝试手动删除 AppData/漫游目录中的 npm 和 npm 缓存,然后在"修复"模式下重新安装节点,(重新启动后)最后 npm 工作。

我在

brew更新后遇到了这个问题。我正在使用 nvm,所以我刚刚重新配置 nvm 以将我的版本与 nvm use vx.x.x

一起使用

最新更新