我正在尝试将节点js应用程序从Windows机器移动到Linux机器以用于QA环境,我在linux机器上安装couchbase模块时遇到问题。
它在Windows机器上运行正常,但我已经在4台不同的linux机器上尝试了这个安装,我运行时收到此错误消息
npm install couchbase --no-bin-links
我在这个日志上使用了vagrant的精确32。
couchbase@2.1.3 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! couchbase@2.1.3 install: `prebuild --install`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the couchbase@2.1.3 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-debug,我从这个命令得到了pastebin
答案 0 :(得分:0)
您无法在干净的环境中使用--no-bin-links
进行安装,因为它依赖于prebuild
二进制文件可访问。要解决此问题,您必须完全删除此开关,或者在没有它的情况下在couchbase之前安装prebuild:
npm install prebuild
npm install couchbase --no-bin-links