【问题标题】:Ionic, Node Sass does not yet support your current environmentIonic,Node Sass 还不支持你当前的环境
【发布时间】:2020-03-11 16:06:19
【问题描述】:

我将操作系统从 windows 切换到 Mac,在为我的应用程序提供服务时将我以前的应用程序从 windows 复制到 Mac 后,它产生了一个错误:

app-scripts] /Volumes/D Drive/Work/Trisquard/carExpense/node_modules/node-sass/lib/binding.js:13
[app-scripts]       throw new Error(errors.unsupportedEnvironment());
[app-scripts]       ^
[app-scripts] Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (72)
[app-scripts] For more information on which environments are supported please see:
[app-scripts] https://github.com/sass/node-sass/releases/tag/v4.9.0
[app-scripts]     at module.exports (/Volumes/D Drive/Work/Trisquard/carExpense/node_modules/node-sass/lib/binding.js:13:13)
[app-scripts]     at Object.<anonymous> (/Volumes/D Drive/Work/Trisquard/carExpense/node_modules/node-sass/lib/index.js:14:35)
[app-scripts]     at Module._compile (internal/modules/cjs/loader.js:936:30)
[app-scripts]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
[app-scripts]     at Module.load (internal/modules/cjs/loader.js:790:32)
[app-scripts]     at Function.Module._load (internal/modules/cjs/loader.js:703:12)
[app-scripts]     at Module.require (internal/modules/cjs/loader.js:830:19)
[app-scripts]     at require (internal/modules/cjs/helpers.js:68:18)
[app-scripts]     at Object.<anonymous> (/Volumes/D Drive/Work/Trisquard/carExpense/node_modules/@ionic/app-scripts/dist/core/bundle-components.js:6:16)
[app-scripts]     at Module._compile (internal/modules/cjs/loader.js:936:30)

[ERROR] ionic-app-scripts has unexpectedly closed (exit code 1).

    The Ionic CLI will exit. Please check any output above for error details.

我的 Mac Node.js 版本 (12.9.1) 我的 windows node.js 版本 (8.9.1)。 谁能告诉我如何解决这个问题。

已经在 Mac 中添加了节点版本 8.9.1 但它给出的错误:

ERR: Your Node.js version is v8.9.1. Please update to the latest Node LTS version.

谢谢。

【问题讨论】:

  • 您是否复制了 node_modules 文件夹,删除后是否重新安装为npm install
  • 首先我从 github 克隆了它,但是在遇到同样的错误之后尝试复制 node_modules 文件夹但得到了同样的错误。

标签: node.js ionic-framework ionic3


【解决方案1】:

你试过运行npm rebuild node-sass吗?

【讨论】:

  • 是的,没有成功。
  • 我刚刚创建了新项目并复制了应用程序文件,它正在工作,但我认为这不是正确的方法。
猜你喜欢
  • 2022-06-14
  • 2018-04-22
  • 1970-01-01
  • 2018-05-06
  • 2020-01-25
  • 2016-09-16
  • 2019-09-22
  • 2019-02-14
  • 2021-02-15
相关资源
最近更新 更多