【发布时间】:2019-06-26 05:12:12
【问题描述】:
你好 我成为公司的新工作区。这就是安装一个新的 nodejs 版本。 12.4.0 当我克隆我的 Ionic 项目并添加平台 Android 时,我总是会出现这个错误。
[cordova-res] Something went wrong installing the “sharp” module
[cordova-res]
[cordova-res] The module ‘\?\USERNAME\AppData\Roaming\npm\node_modules\cordova-res\node_modules\sharp\build\Release\sharp.node’
[cordova-res] was compiled against a different Node.js version using
[cordova-res] NODE_MODULE_VERSION 57. This version of Node.js requires
[cordova-res] NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
[cordova-res] the module (for instance, using npm rebuild or npm install).
[cordova-res]
[cordova-res] - Ensure the version of Node.js used at install time matches that used at runtime
[cordova-res] - Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/
[cordova-res] - Search for this error at https://github.com/lovell/sharp/issues
[cordova-res]
谁能帮帮我?谢谢
【问题讨论】:
标签: android node.js angular cordova ionic-framework