我正在尝试将 Node js 应用程序从 Windows 机器移动到 Linux 机器以进行 QA 环境,但在 Linux 机器上安装 couchbase 模块时遇到问题。
它在 Windows 机器上运行良好,但我在 4 台不同的 Linux 机器上尝试过此安装,当我运行时收到此错误消息
npm 安装 couchbase --no-bin-links
我在 Precision32 上使用 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-debug 发布到 Pastebin