我使用的是 windows 10。已安装 npm 5.6.0 版、node v8.10.0 和 Python 2.7。
即使在使用命令“npm install”安装 npm 之后,未安装 grunt-sass。 之后我使用命令安装了 grunt:
npm install -g grunt-cli
此外,有时会出现类似
的错误"Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime"
我们将不胜感激任何帮助。
最佳答案
在
package.json
所在的项目文件夹中,运行:npm install
但是,如果
grunt-sass
不存在于您的package.json
中,请运行:npm install grunt-sass
如果您希望保存它以供将来使用
npm install
,请运行:npm install grunt-sass --save
关于node.js - 找不到 Npm 模块 "grunt-sass"。安装了吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49505842/