用自耕农生成终极种子时出错

时间:2014-08-18 18:51:33

标签: node.js angularjs npm yeoman yeoman-generator

我试图使用终极种子发生器创建我的第一个Yeoman webapp。但是我收到以下错误:

C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect>npm install



> ultimate-seed@0.3.12 preinstall C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect
> node npm-scripts preinstall

npm preinstall script executed
\


> ultimate-seed@0.3.12 postinstall C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect
> node npm-scripts postinstall

npm postinstall script executed
{ [Error: Command failed: cp: invalid option -- n
Try `cp --help' for more information.
] killed: false, code: 1, signal: null }
-
npm ERR! ultimate-seed@0.3.12 postinstall: `node npm-scripts postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ultimate-seed@0.3.12 postinstall script.
npm ERR! This is most likely a problem with the ultimate-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node npm-scripts postinstall
npm ERR! You can get their info via:
npm ERR!     npm owner ls ultimate-seed
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Fidel\Desktop\Nueva carpeta\new-proyect\npm-debug.log
npm ERR! not ok code 0

我很确定节点js和yeoman安装好了。我认为这可能是Window和yeoman的一个问题。有人知道吗?

1 个答案:

答案 0 :(得分:0)

问题是post-install脚本使用unix cp命令来复制文件。因为你在Windows上,这是行不通的

你可以在windows下运行cygwin下的npm install或其他一些unix-type shell。

但是,package has been deleted from npm - 你应该尝试找一个最新的并改用它。