E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_20160524_01_Anj>ionic serve -l
(node:4772) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
There is an error in your gulpfile:
Error: Node Sass does not yet support your current environment: Windows 64-bit with false
For more information on which environments are supported please see:
TODO URL
at Object.<anonymous> (E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_20160524_01_Anj\node_modules\node-sass\lib\index.js:12:11)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_20160524_01_Anj\node_modules\gulp-sass\index.js:187:21)
at Module._compile (module.js:541:32)
当前回答
我得到这个错误时,我更新节点使用NVM。 去掉这条线; NPM重建node-sass
其他回答
如果上述答案没有解决您的问题,请尝试一次
npm uninstall node-sass
npm install node-sass@4.14.1
来源:这里
命令npm uninstall node-sass && npm install node-sass对我没有帮助,但在安装Python 2.7和Visual c++构建工具后,我删除了node_modules文件夹,从管理员打开CMD并运行npm install——msvs_version=2015。安装成功!
这条评论和这个链接也会有所帮助。
下面的堆栈跟踪链接帮助我解决了这个问题。
Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.7.2
这个链接(https://github.com/sass/node-sass/releases/tag/v4.7.2)清楚地显示了所支持的节点版本。
OS Architecture Node
Windows x86 & x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9
... ... ...
将节点版本降级到8.11.1后,再次执行npm install。收到以下信息。
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x
Found bindings for the following environments:
- Windows 64-bit with Unsupported runtime (64)
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
最后,按照指示运行npm rebuild node-sass——force,一切都开始工作了
下面是node和node-sass兼容版本列表。
NodeJS Supported node-sass version *
Node 15 5.0+
Node 14 4.14+
Node 13 4.13+, < 5.0
Node 12 4.12+
Node 11 4.10+, < 5.0
Node 10 4.9+
Node 8 4.5.3+, < 5.0
Node < 8 < 5.0 < 57
如果问题存在,请升级或降级版本。
需要将节点降级至14版本:
npm install -g n
n 14
# if one of the commands does not pass, you may need to use sudo
sudo npm install -g n
sudo n 14
推荐文章
- npm -D标志是什么意思?
- NPM全局安装“无法找到模块”
- 通过npm安装Twitter Bootstrap的目的?
- 如何卸载使用npm link安装的包?
- DeprecationWarning:当我将脚本移动到另一个服务器时,由于安全性和可用性问题,Buffer()已弃用
- npm犯错!代码UNABLE_TO_GET_ISSUER_CERT_LOCALLY
- 你可以为你的组织托管一个私有的存储库来使用npm吗?
- 如何用npm更新TypeScript到最新版本?
- Nodejs无法在Windows上找到已安装的模块
- 我需要两个包锁吗?Json和package.json?
- 在Windows上运行Python以获得Node.js依赖
- 如何在NPM安装期间使用不同版本的python ?
- 更新包。Json自动版本
- 无法运行我的Node.js Typescript项目TypeError [ERR_UNKNOWN_FILE_EXTENSION]:未知的文件扩展名"。/app/src/ app .ts
- npm install -g less does not work: EACCES:权限被拒绝