0

我是 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 ]

为什么会出现此问题以及如何解决此问题?

4

1 回答 1

1

在尝试这些事情时,我还没有安装git 。这就是为什么我有这个错误。安装 git 后我的问题得到解决。

他们在https://github.com/BoilerplateMVC/Backbone-Require-Boilerplate上没有提到任何关于git的内容。从http://git-scm.com/下载 git并在 git 安装后尝试安装 npm 包。

谢谢。

于 2014-03-13T10:38:31.847 回答