npm install报错RunScriptError: pos
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
解决方法:npm rebuild node-sass
安装完重新启动就ok了, 所以没事还是别更新node