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)
当前回答
当使用Visual Studio中的任务运行器资源管理器时,确保你优先选择正确的PATH。
还要确保,一旦你改变优先级,重新启动VS。
$(PATH)指向默认节点路径 .\node_modules\.bin指向本地项目路径
因此,当您使用NVM切换节点版本时,您应该选择系统路径。
其他回答
试试这个:
npm --depth 9999 update
npm rebuild node-sass
下面是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
如果问题存在,请升级或降级版本。
删除node_modules并运行npm install为我修复了这些错误。
其他人说:npm重建node-sass或npm审计修复可能会有帮助。
下面的堆栈跟踪链接帮助我解决了这个问题。
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,一切都开始工作了
NPM卸载node-sass && NPM安装node-sass是更好的解决方法
推荐文章
- 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:权限被拒绝
- 为什么在npm中对插件使用对等依赖?
- “npm config set registry https://registry.npmjs.org/”在Windows bat文件中不工作
- 安装Gulp后:"没有命令' Gulp ' found "
- 如何使用私人Github回购作为npm依赖
- NPM在package.json中通过依赖项安装私有github存储库