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)
当前回答
下面是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
如果问题存在,请升级或降级版本。
其他回答
我尝试了这个,但它不适合我,并抛出错误:
npm --depth 9999 update
npm rebuild node-sass
我已经安装了最新的Node.js(目前是11.11.0 Current),在遇到这个问题后,我只是做了以下工作:
降级到推荐版本(目前是10.15.3 LTS) 你可以从NodeJS中获取, 删除node_modules和 然后重新安装纱线:
yarn install
yarn start
在执行这些命令之后,一切都运行正常。
这里的最佳解决方案是迁移到dart-sass,因为node-sass库已被弃用。
遇到这个问题,npm i @ionic/app-scripts是唯一工作的东西。
使用Nodist节点版本管理器
如果使用nodist版本管理器,并且只设置了本地(文件夹)节点版本,则可能会出现此错误。
为此,需要将全局节点版本设置为与node-sass版本相匹配的版本。
我安装了最新的版本,在写这篇评论的时候是5.0.0
NPM安装node-sass@latest
推荐文章
- 有没有办法修复包锁。json lockfileVersion所以npm使用特定的格式?
- 如何使用npm全局安装一个模块?
- npm犯错!错误:EPERM:操作不允许,重命名
- Node Sass还不支持当前环境:Linux 64位,带false
- 编译typescript时'tsc命令未找到'
- npm不工作-“读取ECONNRESET”
- npm install from Git在特定的版本
- 顺序运行NPM脚本
- NPM卡住给出相同的错误EISDIR:对目录的非法操作,读取错误(本机)
- Browserslist: canius -lite已经过时。请运行下一个命令' npm update caniuse-lite browserslist '
- 检查已安装的angular-cli版本?
- 如何使webpack开发服务器运行在端口80和0.0.0.0使其公开访问?
- 如何在AWS Lambda中加载npm模块?
- 当我运行' npm install '时,它返回' ERR!代码EINTEGRITY ' (npm 5.3.0)
- 如何在Angular中显示应用版本?