2016-02-16 74 views
0

我正试图将节点js应用程序从Windows机器迁移到用于QA环境的Linux机器,并且在Linux机器上安装couchbase模块时遇到问题。npm在Linux机器上安装couchbase失败

它跑在Windows机器上很好,但我试过这个安装4个不同的Linux机器上,我得到这个错误信息,当我运行

NPM安装couchbase --no斌链接

我在精确的32与这个日志vagrant。

[email protected] install /vagrant/MBO 2122016/node_modules/couchbase 
prebuild --install 

sh: 1: prebuild: not found 
npm ERR! Linux 3.2.0-23-generic-pae 
npm ERR! argv "/home/vagrant/.nvm/versions/node/v5.3.0/bin/node" "/home/vagrant/.nvm/versions/node/v5.3.0/bin/npm" "install" "couchbase" "--no-bin-links" 
npm ERR! node v5.3.0 
npm ERR! npm v3.3.12 
npm ERR! file sh 
npm ERR! code ELIFECYCLE 
npm ERR! errno ENOENT 
npm ERR! syscall spawn 

npm ERR! [email protected] install: `prebuild --install` 
npm ERR! spawn ENOENT 
npm ERR! 
npm ERR! Failed at the [email protected] install script 'prebuild --install'. 
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 couchbase package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  prebuild --install 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls couchbase 
npm ERR! There is likely additional logging output above. 
npm ERR! Linux 3.2.0-23-generic-pae 
npm ERR! argv "/home/vagrant/.nvm/versions/node/v5.3.0/bin/node" "/home/vagrant/.nvm/versions/node/v5.3.0/bin/npm" "install" "couchbase" "--no-bin-links" 
npm ERR! node v5.3.0 
npm ERR! npm v3.3.12 
npm ERR! path npm-debug.log.6258c2ba9fb733156e17534450091eff 
npm ERR! code ETXTBSY 
npm ERR! errno -26 
npm ERR! syscall rename 

我已经发布NPM-调试我从这个命令得到了引擎收录

http://pastebin.com/TtPFCSYf

+0

不是编程问题;属于**超级用户**或** Unix和Linux ** ... – tink

回答

0

不能在清洁的环境中--no-bin-links安装它,因为它依赖于prebuild二进制感无障碍。要解决这个问题,你必须完全移除这个开关,或者在没有它的情况下在没有它的情况下在couchbase之前安装预构建:

npm install prebuild 
npm install couchbase --no-bin-links