Ionic,Node Sass尚不支持您当前的环境

时间:2019-11-15 13:32:03

标签: node.js ionic-framework ionic3

在将我以前的应用程序从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.

谢谢。

1 个答案:

答案 0 :(得分:0)

您是否尝试过运行npm rebuild node-sass