2015-09-30 21 views
12

Tệp couchbase builderror.log hoàn toàn trống. Mọi thứ đều tốt với cài đặt npm, không có lỗi trên màn hình hoặc trong nhật ký.Không thể cài đặt nút couchbase

chi tiết liên quan:

$ echo $PATH 
/Users/david_fells/.nvm/v0.10.40/bin:/usr/bin:/Applications/MAMP/Library/bin:/Users/david_fells/.node_modules_global/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin 
$ node -v 
v0.10.40 
$ python -V 
Python 2.7.6 

Bắt đầu từ ứng dụng (index.js nút hoặc bắt đầu NPM):

[2015-09-30T15:26:23] [ERROR] [Error: Module did not self-register.] 
[2015-09-30T15:26:23] [ERROR] { [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' } 
[2015-09-30T15:26:23] [ERROR] { [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' } 
/Users/david_fells/projects/inmarCDM/node_modules/couchbase/lib/binding.js:152 
    throw new Error('Failed to locate couchnode native binding' + 
^

Error: Failed to locate couchnode native binding (maybe check builderror.log!) 
    at Object.<anonymous> (/Users/david_fells/projects/inmarCDM/node_modules/couchbase/lib/binding.js:152:9) 
    at Module._compile (module.js:434:26) 
    at Object.Module._extensions..js (module.js:452:10) 
    at Module.load (module.js:355:32) 
    at Function.Module._load (module.js:310:12) 
    at Function.cls_wrapMethod [as _load] (/Users/david_fells/projects/inmarCDM/node_modules/newrelic/lib/shimmer.js:230:38) 
    at Module.require (module.js:365:17) 
    at require (module.js:384:17) 
    at Object.<anonymous> (/Users/david_fells/projects/inmarCDM/node_modules/couchbase/lib/couchbase.js:3:15) 
    at Module._compile (module.js:434:26) 

Process finished with exit code 1 

NPM log có này:

0 info it worked if it ends with ok 
1 verbose cli [ '/Users/david_fells/.nvm/v0.10.40/bin/node', 
1 verbose cli '/Users/david_fells/.nvm/v0.10.40/bin/npm', 
1 verbose cli 'start' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose run-script [ 'prestart', 'start', 'poststart' ] 
5 info prestart [email protected] 
6 info start [email protected] 
7 verbose unsafe-perm in lifecycle true 
8 info [email protected] Failed to exec start script 
9 error [email protected] start: `node index.js` 
9 error Exit status 255 
10 error Failed at the [email protected] start script. 
10 error This is most likely a problem with the inmarCDM package, 
10 error not with npm itself. 
10 error Tell the author that this fails on your system: 
10 error  node index.js 
10 error You can get their info via: 
10 error  npm owner ls inmarCDM 
10 error There is likely additional logging output above. 
11 error System Darwin 14.4.0 
12 error command "/Users/david_fells/.nvm/v0.10.40/bin/node" "/Users/david_fells/.nvm/v0.10.40/bin/npm" "start" 
13 error cwd /Users/david_fells/projects/inmarCDM 
14 error node -v v0.10.40 
15 error npm -v 1.4.28 
16 error code ELIFECYCLE 
17 verbose exit [ 1, true ] 

Dưới đây là toàn bộ sản lượng từ một npm ngớ ngẩn: https://dl.dropboxusercontent.com/u/34647212/npm.log

+0

Chỉ cần một ý nghĩ, David, có thể nó đang cố chạy một phiên bản Python khác không? Có lẽ nếu kịch bản cụ thể kiểm tra nếu Python là ở trên như 2.5 nhưng dưới 3.0. – MortenMoulder

+0

Bạn đang sử dụng hệ điều hành nào? – bluesman

+0

Phiên bản Python nằm trong phạm vi phiên bản bắt buộc - 2.7.x Mac OS - xảy ra trên cả EL Capitan và Yosemite cả hai. –

Trả lời

1

Kiểm tra điều này thread từ diễn đàn couchbase.

Dường như môi trường của bạn đang thiếu một số điều kiện tiên quyết của node-gyp

Sau đó kiểm tra node-gyp 's chính thức readme.

Có thể tỷ lệ cược có lợi cho bạn

+0

Đã có tất cả nội dung đó, nhưng cảm ơn –

Các vấn đề liên quan