未能在节点6.11.5上安装沙发床

问题描述 投票:1回答:1

我正在尝试在我的[email protected]项目中添加[email protected],但出现以下错误:

npm info build /opt/meteor/dist/bundle/programs/server/npm/node_modules/couchbase
npm info lifecycle [email protected]~preinstall: [email protected]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm info lifecycle [email protected]~install: [email protected]

> [email protected] install /opt/meteor/dist/bundle/programs/server/npm/node_modules/couchbase
> prebuild --install

module.js:327
    throw err;
    ^

Error: Cannot find module './index'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/opt/meteor/dist/bundle/programs/server/npm/node_modules/.bin/rc:2:10)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
npm verb lifecycle [email protected]~install: unsafe-perm in lifecycle true
npm verb lifecycle [email protected]~install: PATH: /root/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/bin/node-gyp-bin:/opt/meteor/dist/bundle/programs/server/npm/node_modules/couchbase/node_modules/.bin:/opt/meteor/dist/bundle/programs/server/npm/node_modules/.bin:/root/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin:/root/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/bin/node-gyp-bin:/opt/meteor/dist/bundle/programs/server/node_modules/.bin:/root/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin:/root/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
npm verb lifecycle [email protected]~install: CWD: /opt/meteor/dist/bundle/programs/server/npm/node_modules/couchbase
npm info lifecycle [email protected]~install: Failed to exec install script
npm verb stack Error: [email protected] install: `prebuild --install`
npm verb stack Exit status 1
npm verb stack     at EventEmitter.<anonymous> (/root/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
npm verb stack     at emitTwo (events.js:87:13)
npm verb stack     at EventEmitter.emit (events.js:172:7)
npm verb stack     at ChildProcess.<anonymous> (/root/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/utils/spawn.js:40:14)
npm verb stack     at emitTwo (events.js:87:13)
npm verb stack     at ChildProcess.emit (events.js:172:7)
npm verb stack     at maybeClose (internal/child_process.js:862:16)
npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
npm verb pkgid [email protected]
npm verb cwd /opt/meteor/dist/bundle/programs/server/npm
npm verb Linux 4.14.131-linuxkit
npm verb argv "/root/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node" "/root/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm" "rebuild" "--update-binary"
npm verb node v4.8.4
npm verb npm  v4.6.1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `prebuild --install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.meteor/packages/meteor-tool/.1.5.2_2.fkst7p++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/_logs/2019-10-09T08_37_55_024Z-debug.log

我对此完全迷失了。我该如何调查原因。对我来说,错误并没有说太多,只是它发生在某些模块中,而不是我认为的代码中。

node.js meteor npm couchbase
1个回答
0
投票

似乎此版本(2.1.4)中的couchbase模块在节点6.11.5上不起作用[email protected]可以运行。

© www.soinside.com 2019 - 2024. All rights reserved.