美文网首页
npm install报错RunScriptError: pos

npm install报错RunScriptError: pos

作者: 天天zzl | 来源:发表于2020-03-23 20:51 被阅读0次

    npm install报错
    RunScriptError: post install error, please remove node_modules before retry!
    Run "C:\Windows\system32\cmd.exe /d /s /c C:\Program Files\nodejs\node.exe C:\Users\Dell\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/mirrors/node" error, exit code 1
    at ChildProcess.proc.on.code (C:\Users\Dell\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
    npminstall version: 3.22.1
    npminstall args: C:\Program Files\nodejs\node.exe C:\Users\Dell\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\Dell.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://r.npm.taobao.org

    image.png

    解决方法:npm rebuild node-sass

    安装完重新启动就ok了, 所以没事还是别更新node

    相关文章

      网友评论

          本文标题:npm install报错RunScriptError: pos

          本文链接:https://www.haomeiwen.com/subject/tssgyhtx.html