Angular Npm可以';t安装节点sass

Angular Npm可以';t安装节点sass,angular,npm,node-sass,Angular,Npm,Node Sass,当我在我的项目上安装npm时。 节点sass的安装失败。 在无法运行ng service之后 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 np

当我在我的项目上安装npm时。 节点sass的安装失败。 在无法运行
ng service
之后

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
但它不起作用

安装在它前面

安装在它前面


我也遇到了同样的问题,结果发现安装脚本被禁用了。Node Sass除了NPM模块之外还安装一些二进制文件,因此需要启用安装脚本


尝试运行
npm i--ignore scripts=false

我遇到了同样的问题,结果发现安装脚本被禁用。Node Sass除了NPM模块之外还安装一些二进制文件,因此需要启用安装脚本

尝试运行
npmi--ignore scripts=false

npm install -f node-sass
yarn add node-sass