【发布时间】: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