Leg*_*Boy 3 installation build node.js npm ionic-framework
我已经ionic安装了系统。当我运行时,ionic run app tabs它会安装所有npm软件包,但提示落到
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-72_binding.node":
HTTP error 404 Not Found
Run Code Online (Sandbox Code Playgroud)
然后失败,并显示提示
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/velansalis/code/greenlink/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Linux 4.15.0-47-generic
gyp ERR! command "/home/velansalis/.nvm/versions/node/v12.0.0/bin/node" "/home/velansalis/code/greenlink/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/velansalis/code/greenlink/node_modules/node-sass
gyp ERR! node -v v12.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.11.0 (node_modules/node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.11.0 postinstall: `node scripts/build.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
Run Code Online (Sandbox Code Playgroud)
我已经尝试删除node_modules并重新安装软件包。我也尝试重新安装ionic-cli。这不起作用。
我正在使用
node v12.0.0
npm v6.9.0
ionic v4.12.0
实际上,该版本https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-72_binding.node不可用,因为您正在使用节点v12并尝试获取node-sass节点v12的不受支持的版本。
解决方案是将您的节点版本降级为v11或将您的节点-sass依赖关系升级到最新版本。
如果您(对于具有相同问题而又有另一个库的访问者,这里是ionic)正在node-sass用作供应商库,请降级到节点v11并通知库开发人员团队需要更新。