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)
当前回答
如果没有其他方法,请尝试安装低版本的节点。
查找可用的节点版本
Brew搜索节点
安装低版本,如12
Brew install node@12
断开现有版本的链接
酿造断开节点
使用新版本
酿造链接node@12
如果你得到这样的警告:“警告:node@12是keg-only,必须与——force链接”
Brew link—force—overwrite node@10 echo 'export
更新您的配置并提供资源
PATH="/usr/local/opt/node@12/bin:$PATH"' >> ~/. "bash_profile源 ~ / . bash_profile
其他回答
更新你的sass-loader应该会有神奇的效果。
npm i sass-loader@latest
试试这个:
npm --depth 9999 update
npm rebuild node-sass
需要将节点降级至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
在我的情况下,问题是在节点的版本。由于我使用的是最新版本16.0.0,但node-sass的版本是旧的(4.14.1),我将节点降级为14.15.5 (nvm install 14.15.5),运行npm install node-sass@4.14.1,重建节点npm重建node-sass,然后启动我的应用程序npm start。成功了!
步骤:
NVM安装14.15.5(将节点降级到满足node-sass的版本) NVM使用14.15.5 NPM install node-sass@4.14.1(重新安装node-sass) NPM重建node-sass npm开始
如果没有其他方法,请尝试安装低版本的节点。
查找可用的节点版本
Brew搜索节点
安装低版本,如12
Brew install node@12
断开现有版本的链接
酿造断开节点
使用新版本
酿造链接node@12
如果你得到这样的警告:“警告:node@12是keg-only,必须与——force链接”
Brew link—force—overwrite node@10 echo 'export
更新您的配置并提供资源
PATH="/usr/local/opt/node@12/bin:$PATH"' >> ~/. "bash_profile源 ~ / . bash_profile
推荐文章
- “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有什么区别?