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)
当前回答
我通过安装最新版本的python 2.7解决了这个问题。然后将包含python.exe文件的文件夹的路径添加到环境变量中。对我来说,路径是“C:\python27”,然后运行开始命令,它将工作。
这个问题很明显,因为gulp使用的是python 3。当它清楚地显示它使用python 2.7语法执行时,X版本。
import sys; print "%s.%s.%s" % sys.version_info[:3];
其他回答
我尝试了这个,但它不适合我,并抛出错误:
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
在执行这些命令之后,一切都运行正常。
以上这些方法对我都没用。我完全删除,然后重新安装,它解决了这个问题。
删除现有的:
npm uninstall --save-dev node-sass
然后重新安装:
npm install --save-dev node-sass
我得到这个错误时,我更新节点使用NVM。 去掉这条线; NPM重建node-sass
如果上述答案没有解决您的问题,请尝试一次
npm uninstall node-sass
npm install node-sass@4.14.1
来源:这里
我安装了最新的版本,在写这篇评论的时候是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中显示应用版本?