2014-01-20 7 views
2

나는 yeoman으로 각진 어플리케이션을 구축 중입니다.Yeoman-Grunt 빌드에 npm 설치

프록시 및 레지스트리를 설정했습니다.

다음 단계를 수행했습니다.

1.npm이 -g 발전기 각도

3.mkdir 유사시 접촉자를 & & 유사시의 CD-연락처

4를 설치 요 툴툴-CLI 이물

2.npm -g를 설치한다. 요 각도 : 응용 프로그램 yeomanContactsApp이 후

, 나는 오류

npm ERR! EEXIST, mkdir 'C:\Users\Documents\nodejs\yeoman-contacts\node_modules\grunt-contrib-imagemin\node_modules\pngquant-bin\node_modules\bin-wrapper\node_modul 
g' 
File exists: C:\Users\Documents\nodejs\yeoman-contacts\node_modules\grunt-contrib-imagemin\node_modules\pngquant-bin\node_modules\bin-wrapper\node_modules\mout\str 
Move it away, and try again. 

npm ERR! System Windows_NT 6.1.7601 
npm ERR! command "C:\\Users\\\Documents\\tools\\nodejs\\nodejs\\\\node.exe" "C:\\Users\\\Documents\\tools\\nodejs\\nodejs\\node_modules\\npm\\bin\\npm-cli.j 
npm ERR! cwd C:\Users\Documents\nodejs\yeoman-contacts 
npm ERR! node -v v0.10.7 
npm ERR! npm -v 1.2.14 
npm ERR! path C:\Users\Documents\nodejs\yeoman-contacts\node_modules\grunt-contrib-imagemin\node_modules\pngquant-bin\node_modules\bin-wrapper\node_modules\mout\st 
npm ERR! fstream_path C:\Users\Documents\nodejs\yeoman-contacts\node_modules\grunt-contrib-imagemin\node_modules\pngquant-bin\node_modules\bin-wrapper\node_modules 
pascalCase.js 
npm ERR! fstream_type File 
npm ERR! fstream_class FileWriter 
npm ERR! code EEXIST 
npm ERR! errno 47 
npm ERR! fstream_stack C:\Users\Documents\tools\nodejs\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:171:23 
npm ERR! fstream_stack C:\Users\Documents\tools\nodejs\nodejs\node_modules\npm\node_modules\mkdirp\index.js:37:53 
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) 
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Users\Documents\nodejs\yeoman-contacts\node_modules\grunt-contrib-imagemin\node_modules\optipng-bin\node_mo 
pper\node_modules\mout\src\string' 
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir 'C:\Users\Documents\nodejs\yeoman-contacts\node_modules\grunt-contrib-imagemin 
\optipng-bin\node_modules\bin-wrapper\node_modules\mout\src\string'] 
npm ERR! error rolling back errno: 53, 
npm ERR! error rolling back code: 'ENOTEMPTY', 
npm ERR! error rolling back path: 'C:\\Users\\\Documents\\nodejs\\yeoman-contacts\\node_modules\\grunt-contrib-imagemin\\node_modules\\optipng-bin\\node_modules\ 
\node_modules\\mout\\src\\string' } 
npm ERR! [email protected] postinstall: `node lib/check.js` 
npm ERR! `cmd "/c" "node lib/check.js"` failed with 8 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script. 
npm ERR! This is most likely a problem with the jpegtran-bin package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node lib/check.js 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls jpegtran-bin 
npm ERR! There is likely additional logging output above. 

npm ERR! System Windows_NT 6.1.7601 
npm ERR! command "C:\\Users\\\Documents\\tools\\nodejs\\nodejs\\\\node.exe" "C:\\Users\\\Documents\\tools\\nodejs\\nodejs\\node_modules\\npm\\bin\\npm-cli.j 
npm ERR! cwd C:\Users\Documents\nodejs\yeoman-contacts 
npm ERR! node -v v0.10.7 
npm ERR! npm -v 1.2.14 
npm ERR! code ELIFECYCLE 
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Users\Documents\nodejs\yeoman-contacts\node_modules\grunt-contrib-imagemin\node_modules\gifsicle\node_modul 
r\node_modules\download\node_modules\decompress\node_modules\tar\node_modules\block-stream' 
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir 'C:\Users\Documents\nodejs\yeoman-contacts\node_modules\grunt-contrib-imagemin\node_modules\ 
_modules\bin-wrapper\node_modules\download\node_modules\decompress\node_modules\tar\node_modules\block-stream'] 
npm ERR! error rolling back errno: 53, 
npm ERR! error rolling back code: 'ENOTEMPTY', 
npm ERR! error rolling back path: 'C:\\Users\\\Documents\\nodejs\\yeoman-contacts\\node_modules\\grunt-contrib-imagemin\\node_modules\\gifsicle\\node_modules\\bi 
de_modules\\download\\node_modules\\decompress\\node_modules\\tar\\node_modules\\block-stream' } 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  C:\Users\Documents\nodejs\yeoman-contacts\npm-debug.log 
npm ERR! not ok code 0 
npm http GET http://registry.npmjs.org/zeparser/0.0.5 
npm http 200 http://registry.npmjs.org/zeparser/0.0.5 
npm http GET http://registry.npmjs.org/zeparser/-/zeparser-0.0.5.tgz 
npm http 200 http://registry.npmjs.org/zeparser/-/zeparser-0.0.5.tgz 
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Users\Documents\nodejs\yeoman-contacts\node_modules\karma\node_modules\socket.io\node_modules\socket.io-cli 
les\ws' 
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir 'C:\Users\Documents\nodejs\yeoman-contacts\node_modules\karma\node_modules\socket.i 
s\socket.io-client\node_modules\ws'] 
npm ERR! error rolling back errno: 53, 
npm ERR! error rolling back code: 'ENOTEMPTY', 
npm ERR! error rolling back path: 'C:\\Users\\\Documents\\nodejs\\yeoman-contacts\\node_modules\\karma\\node_modules\\socket.io\\node_modules\\socket.io-client\\ 
\ws' } 
npm ERR! Error: ENOENT, lstat 'C:\Users\Documents\nodejs\yeoman-contacts\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\li 
js' 
npm ERR! If you need help, you may report this log at: 
npm ERR!  <http://github.com/isaacs/npm/issues> 
npm ERR! or email it to: 
npm ERR!  <[email protected]> 

npm ERR! System Windows_NT 6.1.7601 
npm ERR! command "C:\\Users\\\Documents\\tools\\nodejs\\nodejs\\\\node.exe" "C:\\Users\\\Documents\\tools\\nodejs\\nodejs\\node_modules\\npm\\bin\\npm-cli.j 
"grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev" 
npm ERR! cwd C:\Users\Documents\nodejs\yeoman-contacts 
npm ERR! node -v v0.10.7 
npm ERR! npm -v 1.2.14 
npm ERR! path C:\Users\Documents\nodejs\yeoman-contacts\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\lib\Validation.js 
npm ERR! fstream_path C:\Users\Documents\nodejs\yeoman-contacts\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\lib\Validat 
npm ERR! fstream_type File 
npm ERR! fstream_class FileWriter 
npm ERR! code ENOENT 
npm ERR! errno 34 
npm ERR! fstream_stack C:\Users\Documents\tools\nodejs\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) 
npm ERR! Error: ENOENT, lstat 'C:\Users\Documents\nodejs\yeoman-contacts\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\uglif 
t\compress\test\ifreturn2.js' 
npm ERR! If you need help, you may report this log at: 
npm ERR!  <http://github.com/isaacs/npm/issues> 
npm ERR! or email it to: 
npm ERR!  <[email protected]> 

npm ERR! System Windows_NT 6.1.7601 
npm ERR! command "C:\\Users\\\Documents\\tools\\nodejs\\nodejs\\\\node.exe" "C:\\Users\\\Documents\\tools\\nodejs\\nodejs\\node_modules\\npm\\bin\\npm-cli.j 
"grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev" 
npm ERR! cwd C:\Users\Documents\nodejs\yeoman-contacts 
npm ERR! node -v v0.10.7 
npm ERR! npm -v 1.2.14 
npm ERR! path C:\Users\Documents\nodejs\yeoman-contacts\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\uglify-js\test\unit\co 
freturn2.js 
npm ERR! fstream_path C:\Users\Documents\nodejs\yeoman-contacts\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\uglify-js\test 
s\test\ifreturn2.js 
npm ERR! fstream_type File 
npm ERR! fstream_class FileWriter 
npm ERR! code ENOENT 
npm ERR! errno 34 
npm ERR! fstream_stack C:\Users\Documents\tools\nodejs\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) 
npm ERR! Error: shasum check failed for C:\Users\AppData\Local\Temp\npm-4680\1390198195771-0.675874836044386\tmp.tgz 
npm ERR! Expected: 03726561bc268f2e5444f54c665b7fd4a8c029e2 
npm ERR! Actual: 3301543460c44351f1395479a95bc5a06dd1a8c4 
npm ERR!  at C:\Users\Documents\tools\nodejs\nodejs\node_modules\npm\lib\utils\sha.js:29:20 
npm ERR!  at ReadStream.<anonymous> (C:\Users\Documents\tools\nodejs\nodejs\node_modules\npm\lib\utils\sha.js:49:5) 
npm ERR!  at ReadStream.EventEmitter.emit (events.js:117:20) 
npm ERR!  at _stream_readable.js:910:16 
npm ERR!  at process._tickCallback (node.js:415:13) 
npm ERR! If you need help, you may report this log at: 
npm ERR!  <http://github.com/isaacs/npm/issues> 
npm ERR! or email it to: 
npm ERR!  <[email protected]> 

npm ERR! System Windows_NT 6.1.7601 
npm ERR! command "C:\\Users\\\Documents\\tools\\nodejs\\nodejs\\\\node.exe" "C:\\Users\\\Documents\\tools\\nodejs\\nodejs\\node_modules\\npm\\bin\\npm-cli.j 
"grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev" 
npm ERR! cwd C:\Users\Documents\nodejs\yeoman-contacts 
npm ERR! node -v v0.10.7 
npm ERR! npm -v 1.2.14 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  C:\Users\Documents\nodejs\yeoman-contacts\npm-debug.log 
npm ERR! not ok code 0 
에게 다음있어개

폴더는 제대로 만들어지고 있지 않습니다

"구성 요소"폴더는 이유가있을 수 있습니다 무엇

누락?

어떻게해야합니까?

Please Advice

답변

3

경로가 너무 깊기 때문에 비슷한 문제가있었습니다. Windows는 기본적으로 디렉토리 이름에 많은 문자 만 처리 할 수 ​​있으며 전체 node_modules 디렉토리 구조가 상당히 깊어 질 수 있습니다! 우리는 Windows 박스에서이를 방지하기 위해 프로젝트 디렉토리를 c:\proj\으로 옮겼습니다. 또한 : http://kmile.nl/post/73956428426/npm-vagrant-and-symlinks-on-windows

+0

경로'C : \ Users \ me \ AppData \ Local \ Temp \ .... '경로가 너무 길다 – pleerock

+0

이 기본 디렉토리를 변경하기 위해 어떤 명령을 사용 했습니까? – pleerock

+0

방금 ​​전체 프로젝트 루트 디렉토리를 '짧은'디렉토리 이름에 복사했습니다. 우리의'npm'은 프로젝트 루트의'node_modules'에 의존성을 설치하므로 다른 것을 변경할 필요가 없습니다. –