当前位置: 首页 > 工具软件 > npminstall > 使用案例 >

解决 [npminstall:runscript:error] node-sass@4.13.1 scripts.postinstall run “node scripts/build.js“

韩阳云
2023-12-01

参考:https://blog.csdn.net/qq_30627241/article/details/104931524
博主:hui_life

排查了下发现是因为sass安装时获取源的问题,先修改sass安装的源

npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
  • 1

再运行npm install就成功了

D:\vscode_project\demo>cnpm install
√ Installed 71 packages
√ Linked 0 latest versions
√ Run 0 scripts
√ All packages installed (used 79ms(network 71ms), speed 0B/s, json 0(0B), tarball 0B
 类似资料: