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)

当前回答

需要将节点降级至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

其他回答

如果你有一个用节点8构建的旧项目,你必须在节点8下运行:

$npm rebuild node-sass

然后切换到10号或以上节点,执行以下命令:

$npm uninstall node-sass && npm install node-sass

在这些行动之后,我一切都很好。如果我在节点8或节点10或更高的节点下执行此操作,则不会修复项目中的问题。 也许它会帮助别人:)

回滚到节点v10.17.0解决了我的问题。

你可以使用nvm来这样做:

https://github.com/nvm-sh/nvm

> nvm install 10.17.0
> nvm use 10.17.0
> node -v
10.17.0

我也遇到过同样的问题,我是这样解决的:

检查当前项目中使用的node-sass版本 进入node-sass release: “https://github.com/sass/node-sass/releases/tag/v@.@.@”(把你的node-sass版本放在这里) 检查Supported Environment表,看看是否有你的Node版本 如果不是,请将节点版本降级到表中现有的最新版本

我知道这不是完美的解决方案,但我没有在我的情况下找到任何其他方法。

下面的堆栈跟踪链接帮助我解决了这个问题。

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 uninstall node-sass && npm install node-sass

如果你想要全局安装它,你可以添加-g