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
其他回答
下面的堆栈跟踪链接帮助我解决了这个问题。
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,一切都开始工作了
我用angular 7得到了这个错误,帮助我的是, 从windows power shell运行命令:
npm install --global --production windows-build-tools
然后我再次打开我的VS Code,在它的终端上运行相同的命令 NPM卸载node-sass并安装node-sass
我有一个类似的错误与sass包,我修复了以下步骤:
在确定错误是由于版本不兼容导致的之后,列出可用的版本:
npm view node-sass versions
我的版本是'5.0.0',所以我把它降级到之前的版本(在我的例子中是'4.14.1'):
npm uninstall node-sass
npm install node-sass@4.14.1
瞧,只需要一个版本步骤,在其他情况下可能需要几个,这取决于项目的年代或需求。
我安装了最新的版本,在写这篇评论的时候是5.0.0
NPM安装node-sass@latest
下面的代码适合我。
npm uninstall node-sass --legacy-peer-deps
npm install node-sass --legacy-peer-deps
推荐文章
- “node_modules”文件夹应该包含在git存储库中吗
- 使用package.json在全局和本地安装依赖项
- 错误:在Android SDK中找不到gradle包装器。可能需要更新你的Android SDK - Android
- 对嵌套文件夹运行npm install的最好方法是什么?
- 在Ubuntu上安装Bower
- 在Ubuntu上安装Node.js
- Node -使用NODE_MODULE_VERSION 51根据不同的Node.js版本编译
- 禁用包的postinstall脚本
- NodeJS -用NPM安装错误
- 如何为本地安装npm包设置自定义位置?
- 如何用分发文件发布npm包?
- 如何判断一个npm包是全局安装还是本地安装
- NodeJS需要一个全局模块/包
- 在MacOS X上推荐用什么方式安装Node.js、nvm和npm ?
- npm install和npm run build有什么区别?