我正在创建一个节点脚本来将meteor app部署到我的服务器; 一旦上传了包并解压缩,我在使用npm时会出现EACCESS错误;
因为在服务器上有以root身份安装的nvm,所以我运行:
sudo /root/.nvm/v0.10.31/bin/npm install
程序/服务器中的;
输出是:
npm WARN package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
/
> fibers@1.0.1 install /var/www/igor/paesidisandalmazzo.it/programs/server/node_modules/fibers
> node ./build.js
child_process.js:1120
throw errnoException(err, 'spawn');
^
Error: spawn EACCES
at exports._errnoException (util.js:745:11)
at ChildProcess.spawn (child_process.js:1120:11)
at Object.exports.spawn (child_process.js:971:9)
at build (/var/www/igor/paesidisandalmazzo.it/programs/server/node_modules/fibers/build.js:52:5)
at Object.<anonymous> (/var/www/igor/paesidisandalmazzo.it/programs/server/node_modules/fibers/build.js:44:3)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:349:32)
at Function.Module._load (module.js:305:12)
at Function.Module.runMain (module.js:490:10)
npm ERR! Linux 3.2.0-4-amd64
npm ERR! argv "node" "/root/.nvm/v0.10.31/bin/npm" "install"
npm ERR! node v0.11.12
npm ERR! npm v2.1.12
npm ERR! code ELIFECYCLE
npm ERR! fibers@1.0.1 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@1.0.1 install script 'node ./build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls fibers
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/igor/paesidisandalmazzo.it/programs/server/npm-debug.log
有人可以帮忙解决这个问题吗?
答案 0 :(得分:0)
我的猜测是光纤安装了另一个版本的节点,因此v0.11.12 - 因为日志显示在中间。
尝试sudo npm uninstall fibers
可能sudo npm uninstall fibers -g
然后npm install fibers
再次编译所需节点环境中的光纤。
当我打包流星应用程序时,我遇到了类似的问题。当你这样做时,Meteor会输出一个Readme.md,明确告诉你重新安装一个或两个依赖项。