我是新来的npm。所以,我只是遵循他们在"入门"中提到的步骤。 https://github.com/BoilerplateMVC/Backbone-Require-Boilerplate页面中的主题。
在步骤6,在npm install
上,我收到以下错误,
11578 silly gunzTarPerm extractEntry LICENSE.BSD
11579 silly gunzTarPerm modified mode [ 'LICENSE.BSD', 438, 420 ]
11580 silly gunzTarPerm extractEntry dist/lodash.compat.js
11581 silly gunzTarPerm modified mode [ 'dist/lodash.compat.js', 438, 420 ]
11582 silly gunzTarPerm extractEntry bin/r.js
11583 silly gunzTarPerm modified mode [ 'bin/r.js', 438, 420 ]
11584 silly gunzTarPerm extractEntry dist/lodash.compat.min.js
11585 silly gunzTarPerm modified mode [ 'dist/lodash.compat.min.js', 438, 420 ]
11586 error Error: ENOENT, lstat 'E:\Backbone-Require-Boilerplate-master\node_modules\karma-coverage\node_modules\istanbul\lib\report\text.js'
11587 error If you need help, you may report this *entire* log,
11587 error including the npm and node versions, at:
11587 error <http://github.com/npm/npm/issues>
11588 error System Windows_NT 6.1.7601
11589 error command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
11590 error cwd E:\Backbone-Require-Boilerplate-master
11591 error node -v v0.10.26
11592 error npm -v 1.4.3
11593 error path E:\Backbone-Require-Boilerplate-master\node_modules\karma-coverage\node_modules\istanbul\lib\report\text.js
11594 error fstream_path E:\Backbone-Require-Boilerplate-master\node_modules\karma-coverage\node_modules\istanbul\lib\report\text.js
11595 error fstream_type File
11596 error fstream_class FileWriter
11597 error code ENOENT
11598 error errno 34
11599 error fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
11599 error fstream_stack Object.oncomplete (fs.js:107:15)
11600 verbose exit [ 34, true ]
为什么会出现此问题以及如何解决此问题?
答案 0 :(得分:1)
我在尝试这些事情时还没有安装git。这就是我遇到这个错误的原因。安装git后我的问题得到解决。
他们没有在https://github.com/BoilerplateMVC/Backbone-Require-Boilerplate上提及有关 git 的任何内容。从http://git-scm.com/下载git并尝试在安装git后安装npm包。
感谢。