2016-10-14 21 views
0

版本信息:遇到問題執行:NPM安裝EXEC同步

[email protected] 
[email protected] 
[email protected] 

我嘗試安裝下面的依賴關係:

"canvas": "^1.1.6", 
"exec-sync": "^0.1.6", 
"fabric": "^1.6.0", 
"request": "^2.67.0", 
"word": "^0.2.4" 

所以我做了一個NPM安裝下面的依賴安裝:

"canvas": "^1.1.6", 
"fabric": "^1.6.0", 
"request": "^2.67.0", 
"word": "^0.2.4" 

但執行同步提供以下錯誤:

1443 verbose stack Error: [email protected] install: `node-gyp rebuild` 
1443 verbose stack Exit status 1 
1443 verbose stack  at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:217:16) 
1443 verbose stack  at emitTwo (events.js:87:13) 
1443 verbose stack  at EventEmitter.emit (events.js:172:7) 
1443 verbose stack  at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14) 
1443 verbose stack  at emitTwo (events.js:87:13) 
1443 verbose stack  at ChildProcess.emit (events.js:172:7) 
1443 verbose stack  at maybeClose (internal/child_process.js:829:16) 
1443 verbose stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 

林在這一點上失去了豆蔻位,我嘗試了以下幾件事:

  1. 刪除了所有node_modules和嘗試新鮮的安裝;
  2. 試過單獨安裝模塊;

它是node.js與exec-sync構建的版本問題嗎,即時消失了。

回答