问题
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)
回答1:
This error message does not indicate an problem with Ionic, but rather with node-sass, which is specified to execute in your Gulp file. The node-sass error, Node Sass does not yet support your current environment
indicates that the version of node-sass you are trying to run is not compatible with the version of node installed.
Check the Node Sass release notes for the version of node-sass you have, to see which version of node is required. If the version of node is wrong, you must downgrade node, or upgrade node-sass, until you have a compatible pair. If the node version is supported, you may just need to run npm rebuild node-sass
(with -g
if node-sass was installed globally). If that doesn't work, you can npm uninstall node-sass && npm install node-sass
(again, with -g
if necessary).
This github issue has lots more info on this.
回答2:
Working for me only after installing Python 2.7.x (not 3.x) and then npm uninstall node-sass && npm install node-sass
like @Quinn Comendant said.
回答3:
npm uninstall node-sass
&& npm install node-sass
is the better way to fix
回答4:
Removing node_modules
and running npm install
fixed those errors for me.
Others say: npm rebuild node-sass
or npm audit fix
might help.
回答5:
I tried this but it didn't work for me and threw errors:
npm --depth 9999 update
npm rebuild node-sass
I have installed the latest Node.js
(which for the moment is 11.11.0 Current), after facing this problem I just did the following:
- downgrade to recommended version (which for the moment is 10.15.3 LTS),
- deleted node_modules and
- then reinstall yarn:
yarn install
yarn start
After executing these commands everything is working fine for me.
回答6:
Try this:
npm --depth 9999 update
npm rebuild node-sass
回答7:
Ran into this issue, npm i @ionic/app-scripts
was the only thing that worked.
回答8:
In my case the issue was when I installation of the node latest version i.e; 10.6.0. The same error was showing and with reference to @Quinn Uninstalled that version and installed the 8.11.3 LTS version. Now working Fine :)
回答9:
Check the Node Sass release notes for the version of node-sass you have, to see which version of node is required. If the version of node is wrong, you must downgrade node, or upgrade node-sass, until you have a compatible pair. If the node version is supported, you may just need to run npm rebuild node-sass
.If that doesn't work, you can npm uninstall node-sass or npm install node-sass
回答10:
I have same problem and i solve it by the next:
1- check node sass version for current project
2- go to node-sass release : "https://github.com/sass/node-sass/releases/tag/v@.@.@" (but your node sass version here)
3- check the Supported Environments table and see if your Node version are exist in it
4- if it not then downgrade your node version to last version exist in the table
I know it not perfect solution but I don't find another in my case
回答11:
rolling back to node v10.17.0
fixed the problem to me.
You can use nvm to do so:
https://github.com/nvm-sh/nvm
> nvm install 10.17.0
> nvm use 10.17.0
> node -v
10.17.0
回答12:
Commands npm uninstall node-sass && npm install node-sass
didn't help me, but after installing Python 2.7 and Visual C++ Build Tools I deleted node_modules folder, opened CMD from Administrator and ran npm install --msvs_version=2015
. And it installed successfully!
This comment and this link can help too.
回答13:
Are you using Git-Bash
in Windows? I was getting the same error until I tried PowerShell
and magically this error disappeared.
回答14:
The link from the stack trace below helped me in resolving this issue.
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
This link(https://github.com/sass/node-sass/releases/tag/v4.7.2
) clearly shows node versions which are supported.
OS Architecture Node
Windows x86 & x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9
... ... ...
After downgrading the node version to 8.11.1
, executed npm install
again. Got the following message.
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.
Finally,ran npm rebuild node-sass --force
as instructed and all started working
来源:https://stackoverflow.com/questions/37415134/error-node-sass-does-not-yet-support-your-current-environment-windows-64-bit-w