0
我试图将包添加到我的流星1.4项目,但我不能。无法将包添加到流星1.4项目
当运行meteor add 'package'
命令,我收到以下错误:
=> Errors while adding packages:
While loading package fourseven:[email protected]:
error: Command failed: /home/subhan/.meteor/packages/meteor-tool/.1.4.2_3.csm38z++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm rebuild --update-binary
Cannot download "https://github.com/sass/node-sass/releases/download/v3.2.0/linux-x64-46_binding.node": HTTP error 404 Not Found
gyp: /home/subhan/.node-gyp/4.6.2/common.gypi not found (cwd:
/home/subhan/.meteor/packages/fourseven_scss/.3.2.0.14gzvwh++os.linux.x86_64+web.browser+web.cordova/plugin.compileScss.os.linux.x86_64/npm/node_modules/meteor/compileScss/compileScss/node_modules/.temp-jislp2/node_modules/node-sass)
while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit
(/home/subhan/.meteor/packages/fourseven_scss/.3.2.0.14gzvwh++os.linux.x86_64+web.browser+web.cordova/plugin.compileScss.os.linux.x86_64/npm/node_modules/meteor/compileScss/compileScss/node_modules/node-sass/node_modules/pangyp/lib/configure.js:345:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
gyp ERR! System Linux 4.4.0-38-generic
gyp ERR! command "/home/subhan/.meteor/packages/meteor-tool/.1.4.2_3.csm38z++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/subhan/.meteor/packages/fourseven_scss/.3.2.0.14gzvwh++os.linux.x86_64+web.browser+web.cordova/plugin.compileScss.os.linux.x86_64/npm/node_modules/meteor/compileScss/compileScss/node_modules/.temp-jislp2/node_modules/node-sass/node_modules/pangyp/bin/node-gyp"
"rebuild" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd
/home/subhan/.meteor/packages/fourseven_scss/.3.2.0.14gzvwh++os.linux.x86_64+web.browser+web.cordova/plugin.compileScss.os.linux.x86_64/npm/node_modules/meteor/compileScss/compileScss/node_modules/.temp-jislp2/node_modules/node-sass
gyp ERR! node -v v4.6.2
gyp ERR! pangyp -v v2.2.1
gyp ERR! not ok
Build failed
npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/home/subhan/.meteor/packages/meteor-tool/.1.4.2_3.csm38z++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/subhan/.meteor/packages/meteor-tool/.1.4.2_3.csm38z++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm" "rebuild" "--update-binary"
npm ERR! node v4.6.2
npm ERR! npm v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/subhan/.meteor/packages/fourseven_scss/.3.2.0.14gzvwh++os.linux.x86_64+web.browser+web.cordova/plugin.compileScss.os.linux.x86_64/npm/node_modules/meteor/compileScss/compileScss/node_modules/.temp-jislp2/npm-debug.log
Cannot download "https://github.com/sass/node-sass/releases/download/v3.2.0/linux-x64-46_binding.node": HTTP error 404 Not Found
gyp: /home/subhan/.node-gyp/4.6.2/common.gypi not found (cwd:
/home/subhan/.meteor/packages/fourseven_scss/.3.2.0.14gzvwh++os.linux.x86_64+web.browser+web.cordova/plugin.compileScss.os.linux.x86_64/npm/node_modules/meteor/compileScss/compileScss/node_modules/.temp-jislp2/node_modules/node-sass)
while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit
(/home/subhan/.meteor/packages/fourseven_scss/.3.2.0.14gzvwh++os.linux.x86_64+web.browser+web.cordova/plugin.compileScss.os.linux.x86_64/npm/node_modules/meteor/compileScss/compileScss/node_modules/node-sass/node_modules/pangyp/lib/configure.js:345:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
gyp ERR! System Linux 4.4.0-38-generic
gyp ERR! command "/home/subhan/.meteor/packages/meteor-tool/.1.4.2_3.csm38z++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/subhan/.meteor/packages/fourseven_scss/.3.2.0.14gzvwh++os.linux.x86_64+web.browser+web.cordova/plugin.compileScss.os.linux.x86_64/npm/node_modules/meteor/compileScss/compileScss/node_modules/.temp-jislp2/node_modules/node-sass/node_modules/pangyp/bin/node-gyp"
"rebuild" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd
/home/subhan/.meteor/packages/fourseven_scss/.3.2.0.14gzvwh++os.linux.x86_64+web.browser+web.cordova/plugin.compileScss.os.linux.x86_64/npm/node_modules/meteor/compileScss/compileScss/node_modules/.temp-jislp2/node_modules/node-sass
gyp ERR! node -v v4.6.2
gyp ERR! pangyp -v v2.2.1
gyp ERR! not ok
Build failed
npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/home/subhan/.meteor/packages/meteor-tool/.1.4.2_3.csm38z++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/subhan/.meteor/packages/meteor-tool/.1.4.2_3.csm38z++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm" "rebuild" "--update-binary"
npm ERR! node v4.6.2
npm ERR! npm v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/subhan/.meteor/packages/fourseven_scss/.3.2.0.14gzvwh++os.linux.x86_64+web.browser+web.cordova/plugin.compileScss.os.linux.x86_64/npm/node_modules/meteor/compileScss/compileScss/node_modules/.temp-jislp2/npm-debug.log
我尝试添加不同的包,我也得到了同样的错误。 我正在运行基于Ubuntu的基本操作系统loki 16.04
任何帮助将不胜感激。
就尝试过了,我得到了同样的错误 –
对不起,是我不好,它看起来像它的失败的节点 - sass安装。试试npm install,或者npm rebuild – Mikkel
我尝试了一个'npm rebuild'和'npm install',它们看起来都很好。 –