当我在我的项目Angular上安装npm时。node-sass安装失败。在不可能运行ng serve之后。
npm ERR! node-sass@4.11.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.11.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:我尝试了这个命令:
npm install
npm update但它不起作用。
发布于 2019-04-18 16:04:05
install by fore (通过前台安装
npm install -f node-sass或
yarn add node-sass发布于 2020-05-11 17:16:46
我也有同样的问题,结果发现安装脚本被禁用了。Node Sass除了安装NPM模块外,还会安装一些二进制文件,因此需要启用安装脚本。
尝试运行npm i --ignore-scripts=false
https://stackoverflow.com/questions/55741402
复制相似问题