2015-11-09 1 views
0

Я недавно переключился на узел из iojs, наконец, получил установку для работы с узлом и npm, но теперь не может загружать зависимости dev для моего проекта. НАЯ установка дает следующее ...npm install дает ошибку node-gyp

> [email protected] install /Users/ernest son/Desktop/PROJECTS/musicomp/node_modules/bufferutil 
> node-gyp rebuild 

CXX(target) Release/obj.target/bufferutil/src/bufferutil.o 
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/include/node' 
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/src' 
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/deps/uv/include' 
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/deps/v8/include' 
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1 
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2 
gyp ERR! stack  at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) 
gyp ERR! stack  at emitTwo (events.js:87:13) 
gyp ERR! stack  at ChildProcess.emit (events.js:172:7) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) 
gyp ERR! System Darwin 14.5.0 
gyp ERR! command "/usr/local/Cellar/node/5.0.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
gyp ERR! cwd /Users/ernest son/Desktop/PROJECTS/musicomp/node_modules/bufferutil 
gyp ERR! node -v v5.0.0 
gyp ERR! node-gyp -v v3.0.3 
gyp ERR! not ok 
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild` 
npm WARN install:[email protected] Exit status 1 

> [email protected] install /Users/ernest son/Desktop/PROJECTS/musicomp/node_modules/utf-8-validate 
> node-gyp rebuild 

    CXX(target) Release/obj.target/validation/src/validation.o 
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/include/node' 
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/src' 
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/deps/uv/include' 
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/deps/v8/include' 
make: *** [Release/obj.target/validation/src/validation.o] Error 1 
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2 
gyp ERR! stack  at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) 
gyp ERR! stack  at emitTwo (events.js:87:13) 
gyp ERR! stack  at ChildProcess.emit (events.js:172:7) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) 
gyp ERR! System Darwin 14.5.0 
gyp ERR! command "/usr/local/Cellar/node/5.0.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
gyp ERR! cwd /Users/ernest son/Desktop/PROJECTS/musicomp/node_modules/utf-8-validate 
gyp ERR! node -v v5.0.0 
gyp ERR! node-gyp -v v3.0.3 
gyp ERR! not ok 
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild` 
npm WARN install:[email protected] Exit status 1 
[email protected] /Users/ernest son/Desktop/PROJECTS/musicomp 
├─┬ [email protected] 
│ └─┬ [email protected] 
│ └─┬ [email protected] 
│  └── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ └─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ └─┬ [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ └─┬ [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ └─┬ [email protected] 
│ └─┬ [email protected] 
│  ├── [email protected] 
│  └── [email protected] 
├─┬ [email protected] 
│ └─┬ [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ └─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ └─┬ [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ └─┬ [email protected] 
│ └─┬ [email protected] 
│  └── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ └─┬ [email protected] 
│ │ └─┬ [email protected] 
│ │  └─┬ [email protected] 
│ │  └── [email protected] 
│ └─┬ [email protected] 
│ └── [email protected] 
└─┬ [email protected] 
    └─┬ [email protected] 
    └─┬ [email protected] 
     └── [email protected] 

Я попытался удалить $ HOME/.node-лавочку, а также фиксировать место в моем имени пользователя. Перезагружен, но все еще возникают проблемы с node-gyp. Может ли кто-нибудь помочь? Спасибо

ответ

0

корень проблемы заключается в том, что в моей домашней папке было свободное место. После этого все было гладко!