Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 在Yeoman Grunt构建中安装npm_Node.js_Angularjs_Yeoman - Fatal编程技术网

Node.js 在Yeoman Grunt构建中安装npm

Node.js 在Yeoman Grunt构建中安装npm,node.js,angularjs,yeoman,Node.js,Angularjs,Yeoman,我正在与yeoman建立一个角度应用程序 我已经设置了代理和注册表 我执行了以下步骤 1.npm安装-g yo grunt cli bower 2.npm安装-g发电机角度 3.mkdir约曼联系人和cd约曼联系人 4.2:app yeomanContactsApp 在此之后,我得到了以下错误 npm ERR! EEXIST, mkdir 'C:\Users\Documents\nodejs\yeoman-contacts\node_modules\grunt-contrib-imagemin\

我正在与yeoman建立一个角度应用程序

我已经设置了代理和注册表

我执行了以下步骤

1.npm安装-g yo grunt cli bower

2.npm安装-g发电机角度

3.mkdir约曼联系人和cd约曼联系人

4.2:app 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  grunt-contrib-imagemin@0.3.0 { [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! jpegtran-bin@0.2.3 postinstall: `node lib/check.js`
npm ERR! `cmd "/c" "node lib/check.js"` failed with 8
npm ERR!
npm ERR! Failed at the jpegtran-bin@0.2.3 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  gifsicle@0.1.4 { [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  socket.io-client@0.9.16 { [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!     <npm-@googlegroups.com>

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!     <npm-@googlegroups.com>

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!     <npm-@googlegroups.com>

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
npm错误!EEXIST,mkdir'C:\Users\Documents\nodejs\yeoman contacts\node\u modules\grunt contrib imagemin\node\u modules\pngquant bin\node\u modules\bin wrapper\node\u modules
g'
文件存在:C:\Users\Documents\nodejs\yeoman contacts\node\u modules\grunt contrib imagemin\node\u modules\pngquant bin\node\u modules\bin wrapper\node\u modules\mout\str
请将其移开,然后重试。
npm错误!系统Windows\u NT 6.1.7601
npm错误!命令“C:\\Users\\\ Documents\\tools\\nodejs\\nodejs\\\\node.exe”C:\\Users\\ Documents\\tools\\nodejs\\nodejs\\node\u modules\\npm\\bin\\npm cli.j
npm ERR!cwd C:\Users\Documents\nodejs\yeoman contacts
npm错误节点-v v0.10.7
npm错误!npm-V1.2.14
npm ERR!路径C:\Users\Documents\nodejs\yeoman contacts\node\u modules\grunt contrib imagemin\node\u modules\pngquant bin\node\u modules\bin wrapper\node\u modules\mout\st
npm ERR!fstream\u路径C:\Users\Documents\nodejs\yeoman contacts\node\u modules\grunt contrib imagemin\node\u modules\pngquant bin\node\u modules\bin wrapper\node\u modules
pascalCase.js
npm ERR!fstream\u类型文件
npm ERR!fstream\u类文件编写器
npm错误!代码存在
npm错误!错误47
npm ERR!fstream\u堆栈C:\Users\Documents\tools\nodejs\nodejs\node\u modules\npm\node\u modules\fstream\lib\writer.js:171:23
npm ERR!fstream\u堆栈C:\Users\Documents\tools\nodejs\nodejs\node\u modules\npm\node\u modules\mkdirp\index.js:37:53
npm ERR!fstream\u stack Object.oncomplete(fs.js:107:15)
npm ERR!错误回滚错误:eNOTENTY,rmdir'C:\Users\Documents\nodejs\yeoman contacts\node\u modules\grunt contrib imagemin\node\u modules\optipng bin\node\u mo
pper\node\u modules\mout\src\string'
npm ERR!回滚grunt contrib时出错-imagemin@0.3.0{[Error:eNOTENTY,rmdir'C:\Users\Documents\nodejs\yeoman contacts\node\u modules\grunt contrib imagemin
\optipng bin\node\u modules\bin wrapper\node\u modules\mout\src\string']
npm ERR!回滚错误号:53,
npm ERR!回滚代码时出错:“e诱惑”,
npm ERR!回滚路径时出错:“C:\\Users\\\Documents\\nodejs\\yeoman contacts\\node\u modules\\grunt contrib imagemin\\node\u modules\\optipng bin\\node\u modules”\
\节点\u模块\\mout\\src\\string'}
npm错误!JPEG传输-bin@0.2.3postinstall:`node lib/check.js`
npm ERR!`cmd”/c“”节点lib/check.js``失败,错误为8
npm错误!
npm ERR!在JPEG传输时失败-bin@0.2.3安装后脚本。
npm ERR!这很可能是jpegtran bin包的问题,
npm错误!与npm本身无关。
npm ERR!告诉作者此操作在您的系统上失败:
npm ERR!node lib/check.js
npm ERR!您可以通过以下方式获取他们的信息:
npm错误!npm所有者ls jpegtran bin
npm ERR!上面可能还有其他日志输出。
npm错误!系统Windows\u NT 6.1.7601
npm ERR!命令“C:\\Users\\\ Documents\\tools\\nodejs\\nodejs\\\\node.exe”C:\\Users\\\ Documents\\tools\\nodejs\\node\u modules\\npm\\bin\\npm cli.j
npm错误!cwd C:\Users\Documents\nodejs\yeoman联系人
npm错误!节点-v v0.10.7
npm错误!npm-V1.2.14
npm错误!代码失效循环
npm错误!回滚错误时出错错误:enotery,rmdir'C:\Users\Documents\nodejs\yeoman contacts\node\u modules\grunt contrib imagemin\node\u modules\gifsicle\node\u module
r\node\u modules\download\node\u modules\decompress\node\u modules\tar\node\u modules\block stream'
npm错误!回滚错误gifsicle@0.1.4{[错误:enotery,rmdir'C:\Users\Documents\nodejs\yeoman contacts\node\u modules\grunt contrib imagemin\node\u modules\
_modules\bin wrapper\node\u modules\download\node\u modules\decompress\node\u modules\tar\node\u modules\block stream']
npm ERR!回滚错误号:53,
npm ERR!回滚代码时出错:“e诱惑”,
npm ERR!回滚路径时出错:“C:\\Users\\ Documents\\nodejs\\yeoman contacts\\node\u modules\\grunt contrib imagemin\\node\u modules\\gifsicle\\node\u modules\\bi”
数据单元模块\\下载\\节点单元模块\\解压缩\\节点单元模块\\tar\\节点单元模块\\块流'}
npm错误!
npm错误!其他日志记录详细信息可在以下位置找到:
npm错误!C:\Users\Documents\nodejs\yeoman contacts\npm-debug.log
npm错误!不正常代码0
npm http GEThttp://registry.npmjs.org/zeparser/0.0.5
npm http 200http://registry.npmjs.org/zeparser/0.0.5
npm http GEThttp://registry.npmjs.org/zeparser/-/zeparser-0.0.5.tgz
npm http 200http://registry.npmjs.org/zeparser/-/zeparser-0.0.5.tgz
npm错误!回滚错误时出错错误:enotery,rmdir'C:\Users\Documents\nodejs\yeoman contacts\node\u modules\karma\node\u modules\socket.io\node\u modules\socket.io-cli
莱斯\ws'
npm错误!回滚socket.io时出错-client@0.9.16{[错误:enotery,rmdir'C:\Users\Documents\nodejs\yeoman contacts\node\u modules\karma\node\u modules\socket.i
s\socket.io客户端\node\u模块\ws']
npm ERR!回滚错误号:53,
npm ERR!回滚代码时出错:“e诱惑”,
npm ERR!回滚路径时出错:“C:\\Users\\\Documents\\nodejs\\yeoman contacts\\node\u modules\\karma\\node\u modules\\socket.io\\node\u modules\\socket.io-client”\\
\ws'}
npm错误!错误:enoint,lstat'C:\Users\Documents\nodejs\yeoman contacts\node\u modules\karma\node\u modules\socket.io\node\u modules\socket.io client\node\u modules\ws\li
js'
npm错误!如果需要帮助,您可以在以下位置报告此日志:
npm错误!
npm错误!或通过电子邮件发送至:
npm错误!
npm错误!系统Windows\u NT 6.1.7601
npm错误!命令“C:\\Users\\\ Documents\\tools\\nodejs\\nodejs\\\\node.exe”C:\\Users\\ Documents\\tools\\nodejs\\nodejs\\node\u modules\\npm\\bin\\npm cli.j
“grunt karma”“karma-ng-html2js-预处理器”“karma-ng场景”“--保存开发”
npm ERR!cwd C:\Users\Documents\nodejs\yeoman contacts
npm错误节点-v v0.10.7
npm错误!npm-V1.2.14
npm ERR!路径C:\Users\Documents\nodejs\yeoman contacts\node\u modules\karma\node\u modules\socket.io\nod