Ionic framework 错误:节点Sass尚不支持当前环境:Windows 64位,带false E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_20160524_01_Anj>ionic serve-l (节点:4772)fs:不支持重新评估本机模块源。如果您使用的是优雅的fs模块,请将其更新为最新版本。 您的gulpfile中有一个错误: 错误:节点Sass尚不支持当前环境:Windows 64位,带false 有关支持哪些环境的更多信息,请参阅: 待办事项网址 反对。(E:\A Prem World\Team\u Work\u Tasks\Anjali\Anjali\u 20160524\QuizApp\u 20160524\u 01\u Anj\node\u modules\node sass\lib\index.js:12:11) 在模块处编译(Module.js:541:32) 在Object.Module._extensions..js(Module.js:550:10) 在Module.load(Module.js:456:32) 在tryModuleLoad时(module.js:415:12) 在Function.Module.\u加载(Module.js:407:3) at Module.require(Module.js:466:17) 根据需要(内部/module.js:20:19) 反对。(E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_20160524\u 01_Anj\node_modules\gulp sass\index.js:187:21) 在模块处编译(Module.js:541:32)
此错误消息并不表示IONAL有问题,而是表示指定在Gulp文件中执行的Ionic framework 错误:节点Sass尚不支持当前环境:Windows 64位,带false E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_20160524_01_Anj>ionic serve-l (节点:4772)fs:不支持重新评估本机模块源。如果您使用的是优雅的fs模块,请将其更新为最新版本。 您的gulpfile中有一个错误: 错误:节点Sass尚不支持当前环境:Windows 64位,带false 有关支持哪些环境的更多信息,请参阅: 待办事项网址 反对。(E:\A Prem World\Team\u Work\u Tasks\Anjali\Anjali\u 20160524\QuizApp\u 20160524\u 01\u Anj\node\u modules\node sass\lib\index.js:12:11) 在模块处编译(Module.js:541:32) 在Object.Module._extensions..js(Module.js:550:10) 在Module.load(Module.js:456:32) 在tryModuleLoad时(module.js:415:12) 在Function.Module.\u加载(Module.js:407:3) at Module.require(Module.js:466:17) 根据需要(内部/module.js:20:19) 反对。(E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_20160524\u 01_Anj\node_modules\gulp sass\index.js:187:21) 在模块处编译(Module.js:541:32),ionic-framework,npm,node-sass,Ionic Framework,Npm,Node Sass,此错误消息并不表示IONAL有问题,而是表示指定在Gulp文件中执行的节点sass有问题 节点sass错误: 节点Sass尚不支持当前环境 指示您尝试运行的节点sass版本与安装的节点版本不兼容 检查节点sass的版本,查看需要哪个版本的节点 如果节点的版本错误,则必须降级节点或升级节点sass,直到找到一对兼容的节点。如果支持节点版本,您可能只需要运行: E:\A Prem World\Team_Work_Tasks\Anjali\Anjali_20160524\QuizApp_2016052
节点sass有问题
节点sass
错误:
节点Sass尚不支持当前环境
指示您尝试运行的节点sass版本与安装的节点版本不兼容
检查节点sass的版本,查看需要哪个版本的节点
如果节点的版本错误,则必须降级节点或升级节点sass
,直到找到一对兼容的节点。如果支持节点版本,您可能只需要运行:
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)
(如果节点sass是全局安装的,则使用-g
)
如果这不起作用,您可以:
npm rebuild node-sass
(如有必要,请再次使用-g
)
有很多关于这方面的信息。删除node\u模块
并运行npm安装
为我修复了这些错误
其他人说:npm重建节点sass
或npm审计修复
可能会有所帮助。只有在安装了python2.7.x(而不是3.x)之后才为我工作,然后npm卸载节点sass&&npm安装节点sass
就像@Quinn Comendant所说的那样。命令npm卸载节点sass&&npm安装节点sass
对我没有帮助,但在安装之后,我删除了node_modules文件夹,从Administrator打开CMD并运行npm install--msvs_version=2015
。安装成功
在我的例子中,问题是当我安装节点的最新版本时,即10.6.0。显示了相同的错误,并参考@Quinn卸载了该版本并安装了8.11.3 LTS版本。现在工作正常:)检查Node Sass发行说明中的Node Sass版本,查看需要哪个版本的Node。如果节点的版本错误,则必须降级节点或升级节点sass,直到找到兼容的对为止。如果支持节点版本,您可能只需要运行npm rebuild node sass
。如果不起作用,您可以npm卸载node sass
或npm安装node sass
尝试以下操作:
npm uninstall node-sass && npm install node-sass
我尝试了这个,但它对我无效,并抛出了错误:
npm --depth 9999 update
npm rebuild node-sass
我已经安装了最新的Node.js
(目前是11.11.0当前版本),在遇到这个问题后,我只做了以下操作:
降级至推荐版本(目前为10.15.3 LTS)
- 你可以从
已删除节点_模块和
然后重新安装纱线:
执行这些命令后,我一切正常。npm uninstall node sass
和&npm install node sass
是更好的修复方法。我遇到了同样的问题,我解决了它,如下所示:
检查当前项目中使用的节点sass
版本
转到节点sass
发布:
"https://github.com/sass/node-sass/releases/tag/v@.@.@“(将节点sass版本放在此处)
检查Supported Environment表,查看其中是否存在您的节点版本
如果不是,请将节点版本降级为表中现有的最新版本
我知道这不是一个完美的解决方案,但在我的案例中,我没有找到任何其他解决方案。下面堆栈跟踪中的链接帮助我解决了这个问题
yarn install
yarn start
此链接(https://github.com/sass/node-sass/releases/tag/v4.7.2
)清楚地显示了受支持的节点版本
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
将节点版本降级到8.11.1
后,再次执行npm install
。收到以下消息
OS Architecture Node
Windows x86 & x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9
... ... ...
最后,按照指示运行npm rebuild node sass--force,所有节点都开始工作遇到这个问题时,npm i@ionic/app scripts
是唯一有效的 回滚到nodev10.17.0
解决了我的问题
您可以使用nvm执行此操作:
我在使用NVM更新节点时遇到此错误。
删除此运行;
npm重建节点sass
以上这些都不适合我。我完全删除,然后重新安装,它解决了这个问题
要删除现有的:
> nvm install 10.17.0
> nvm use 10.17.0
> node -v
10.17.0
然后重新安装:
npm uninstall --save-dev node-sass
对于visual studio 2019,需要更改MSBuild路径
npm install --save-dev node-sass
我得到了这个错误,角度7,帮助我的是,
在windows power shell中,我运行以下命令:
npm config set msvs_version 2017
npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe"
npm rebuild node-sass
然后我再次打开VS代码,在终端上运行相同的命令
npm卸载节点sass
和npm安装节点sass
在我的例子中,它与节点版本相关
我的项目使用的是12.18
npm install --save-dev node-sass
npm config set msvs_version 2017
npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe"
npm rebuild node-sass
npm install --global --production windows-build-tools
"node-sass": "^4.0.0"
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 view node-sass versions
npm uninstall node-sass
npm install node-sass@4.14.1
4.14.1npm ERR! code 1
npm ERR! path /home/<subfolder>/commonreact/node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/build.js
.. 2000 lines of Err ..
npm ERR! gyp ERR! cwd /home/<subfolder>/commonreact/node_modules/node-sass
npm ERR! gyp ERR! node -v v16.2.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
npm ERR! A complete log of this run can be found in:
npm ERR! /home/<username>/.npm/_logs/2021-05-25T13_09_09_655Z-debug.log
npm WARN audit No fix available for cp-cli@*
npm ERR! code ETARGET
npm ERR! notarget No matching version found for object-path@1.1.5.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
binding.target.mk:133: recipe for target 'Release/obj.target/binding/src/binding.o' failed
make: *** [Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/<subfolder>/commonreact/node_modules/node-sass/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/<subfolder>/commonreact/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (node:events:365:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Linux 4.15.0-143-generic
gyp ERR! command "/home/<subfolder>/.nvm/versions/node/v16.2.0/bin/node" "/home/<subfolder>/commonreact/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/<subfolder>/commonreact/node_modules/node-sass
gyp ERR! node -v v16.2.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.13.12 requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-proposal-class-static-block@7.14.3 requires a peer of @babel/core@^7.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN @material-ui/pickers@3.2.10 requires a peer of @date-io/core@^1.3.6 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.5.0 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
import sys; print "%s.%s.%s" % sys.version_info[:3];
npm uninstall node-sass
npm install node-sass@4.14.1