node.js - Yeoman Webapp 安装在 Windows 7 上失败(以及任何其他生成器)

标签 node.js npm yeoman

请帮帮我,因为 yeomanm、npm 或 node 又很糟糕......其中之一,我不知道是谁。我过去曾成功使用过 yeoman,因此我什至不知道问题出在哪里。请帮我调试我的机器。

我有:

npm 1.4.28 Node v0.10.32 哟1.3.2 yo-webapp(最新版本) window 7

这就是实际发生的情况:

 D:\wamp\www\test1>yo webapp

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |    Welcome to Yeoman,    |
   `---------´   |   ladies and gentlemen!  |
    ( _´U`_ )    '--------------------------'
    /___A___\
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

Out of the box I include HTML5 Boilerplate, jQuery, and a Gruntfile.js to build your app.
? What more would you like? Bootstrap, Sass
? Would you like to use libsass? Read up more at
https://github.com/andrew/node-sass#node-sass: Yes
   create Gruntfile.js
   create package.json
   create .gitignore
   create .gitattributes
   create .bowerrc
   create bower.json
   create .jshintrc
   create .editorconfig
   create app\styles\main.scss
   create app\favicon.ico
   create app\robots.txt
   create app\index.html
   create app\scripts\main.js
   invoke   mocha


I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.


   create     test\bower.json
   create     test\.bowerrc
   create     test\spec\test.js
   create     test\index.html
bower mocha#~1.14.0             cached git://github.com/visionmedia/mocha.git#1.14.0
bower mocha#~1.14.0           validate 1.14.0 against git://github.com/visionmedia/mocha.git#~1.14.0
bower bootstrap-sass-official#~3.2.0           cached git://github.com/twbs/bootstrap-sass.git#3.2.0+2
bower bootstrap-sass-official#~3.2.0         validate 3.2.0+2 against git://github.com/twbs/bootstrap-sass.git#~3.2.0
bower chai#~1.8.0               cached git://github.com/chaijs/chai.git#1.8.1
bower chai#~1.8.0             validate 1.8.1 against git://github.com/chaijs/chai.git#~1.8.0
bower jquery#>= 1.9.0                          cached git://github.com/jquery/jquery.git#2.1.1
bower jquery#>= 1.9.0                        validate 2.1.1 against git://github.com/jquery/jquery.git#>= 1.9.0
bower chai#~1.8.0              install chai#1.8.1
bower mocha#~1.14.0            install mocha#1.14.0

chai#1.8.1 bower_components\chai

mocha#1.14.0 bower_components\mocha
bower bootstrap-sass-official#~3.2.0          install bootstrap-sass-official#3.2.0+2
bower jquery#>= 1.9.0                         install jquery#2.1.1

bootstrap-sass-official#3.2.0+2 bower_components\bootstrap-sass-official
└── jquery#2.1.1

jquery#2.1.1 bower_components\jquery
npm WARN package.json test1@ No description
npm WARN package.json test1@ No repository field.
npm WARN package.json test1@ No README data
\


> phantomjs@1.9.11 install D:\wamp\www\test1\node_modules\grunt-mocha\node_modules\grunt-lib-phantomjs\node_modules\phantomjs
> node install.js

Download already available at C:\Users\User\AppData\Local\Temp\phantomjs\phantomjs-1.9.7-windows.zip
Extracting zip contents
Removing D:\wamp\www\test1\node_modules\grunt-mocha\node_modules\grunt-lib-phantomjs\node_modules\phantomjs\lib\phantom
Copying extracted folder C:\Users\User\AppData\Local\Temp\phantomjs\phantomjs-1.9.7-windows.zip-extract-1413800213030\phantomjs-1.9.7-windows -> D:\wamp\www\test1\node_modules\grunt-mocha\node_modules\grunt-lib-phantomjs\node_modules\phantomjs\lib\phantom
Removing C:\Users\User\AppData\Local\Temp\phantomjs\phantomjs-1.9.7-windows.zip-extract-1413800213030
Writing location.js file
Done. Phantomjs binary available at D:\wamp\www\test1\node_modules\grunt-mocha\node_modules\grunt-lib-phantomjs\node_modules\phantomjs\lib\phantom\phantomjs.exe
\


> node-sass@0.9.3 install D:\wamp\www\test1\node_modules\grunt-sass\node_modules\node-sass
> node build.js

`win32-ia32-v8-3.14` exists; testing
|
..........\

  24 passing (159ms)

Binary is fine; exiting
npm WARN optional dep failed, continuing imagemin-jpegtran@1.0.0
npm WARN optional dep failed, continuing imagemin-gifsicle@1.0.0
npm WARN optional dep failed, continuing imagemin-optipng@1.0.0
npm WARN optional dep failed, continuing imagemin-pngquant@1.0.2
npm ERR! EEXIST, open 'C:\Users\User\AppData\Roaming\npm-cache\56a4390f-m-cache-lodash-2-4-1-package-tgz.lock'
File exists: C:\Users\User\AppData\Roaming\npm-cache\56a4390f-m-cache-lodash-2-4-1-package-tgz.lock
Move it away, and try again.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd D:\wamp\www\test1\test
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! path C:\Users\User\AppData\Roaming\npm-cache\56a4390f-m-cache-lodash-2-4-1-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! not ok code 0

为什么我无法再安装发电机?

最佳答案

似乎存在缓存锁定文件,请尝试执行npm cache clean并重新安装。

关于node.js - Yeoman Webapp 安装在 Windows 7 上失败(以及任何其他生成器),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26463553/

相关文章:

json - 我的 NPM 项目不会发布

javascript - 咕噜声 : Automatically adding script tags

mysql - NodeJS 服务器在使用 "Incorrect arguments"查询 MySQL 数据库时崩溃并抛出错误

npm - 在执行命令时究竟如何使用 NPM 脚本和 echo?

javascript - nodejs函数到包含函数代码的字符串

gradle - Gradle无法正确执行外部命令

node.js - 开发 Yeoman 生成器模板本身的最简单方法

yeoman - 我应该如何移动或删除 Yeoman Generator 中的文件?

javascript - 未找到 Grunt 任务 (grunt-contrib-sass)

javascript - Webpack 无法解析@import of scss/css