【发布时间】:2016-02-17 17:27:11
【问题描述】:
我正在尝试将 node js 应用程序从 windows 机器移动到 linux 机器以进行 QA 环境,并且在 linux 机器上安装 couchbase 模块时遇到问题。
它在 windows 机器上运行良好,但我已经在 4 台不同的 linux 机器上尝试过这个安装,运行时收到此错误消息
npm install couchbase --no-bin-links
我正在为这些日志使用 vagrant。
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
【问题讨论】:
-
不是编程问题;属于 Super User 或 Unix & Linux ...
标签: linux node.js npm couchbase