我正在尝试使用终极种子生成器创建我的第一个约曼网络应用程序。但是,我得到以下错误:
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都安装好了。我认为这可能是一个窗口和尤曼的问题。有人知道这事吗?
发布于 2014-08-18 19:05:12
问题是,post-install脚本使用unix cp命令复制文件。如果你在Windows上,那是行不通的
您可以在windows上在cygwin或其他unix类型的shell下运行npm install。
然而,那个软件包已从国家预防机制中删除 --你应该试着找一个最新的,然后用它代替。
https://stackoverflow.com/questions/25370123
复制相似问题