执行 npm install 时出现节点 sass 错误 [英] Node sass Error while doing npm install

查看:77
本文介绍了执行 npm install 时出现节点 sass 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试执行 npm install 命令,但最终出现了与节点 sass 相关的错误.

我从 "我正在使用 Windows 7,节点为 6.9.有解决这个错误的想法吗?

解决方案

第 1 步:使用管理员权限打开命令提示符.

第 2 步:输入以下命令:

npm install --global --production windows-build-tools

这将安装所需的所有依赖项.

第 4 步:现在运行以下命令:

npm install node-sass

你可以走了!

如果您仍然遇到问题.请参考此页面:https://github.com/nodejs/node-gyp#on-windows

i was trying to do an npm install command, But ended up with an error related node sass.

I learning react/redux from the "https://github.com/buckyroberts/React-Redux-Boilerplate" from this. and doing npm install fails.

The error is attached as image. I am using windows 7, with node 6.9. any idea to solve this error?

解决方案

Step-1: open command prompt with administrator priviledges.

Step-2: type in the following command:

npm install --global --production windows-build-tools

This will install all the dependencies required.

Step-4: Now run the following command:

npm install node-sass

And you are good to go !

If you still face problems. Please refer to this page: https://github.com/nodejs/node-gyp#on-windows

这篇关于执行 npm install 时出现节点 sass 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆