node.js - Yoeman 与generator-fountain-webapp 发生错误

标签 node.js gulp yeoman-generator yo

我是 Yoeman 和 NodeJS 的新手。我试图按照 http://yeoman.io/codelab/scaffold-app.html 上的教程进行操作

我在步骤 3 中遇到意外错误,按照步骤 3 中的选项运行 yo 后,出现错误:

npm ERR! code 1
npm ERR! Command failed: /Users/shaunrong/anaconda3/envs/NodeJS/bin/git checkout 4ed9a4a3275559c73a396eff7e1fde3824951ebb
npm ERR! error: Your local changes to the following files would be overwritten by checkout:
npm ERR!    docs/why-use-pump/pipe-error.png
npm ERR!    docs/why-use-pump/pump-error.png
npm ERR! Please commit your changes or stash them before you switch branches.
npm ERR! Aborting
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/shaunrong/.npm/_logs/2018-01-01T06_05_39_887Z-debug.log
Initialized empty Git repository in /Users/shaunrong/Documents/PhD_Course/NodeJS/yo/.git/

这似乎与 gulp 有关,但我不知道如何解决它。我在 conda 虚拟环境中使用 NodeJS 和 npm。

哟版本是2.0.0 npm 版本是 5.4.2 Node 版本为v8.8.1

请帮忙。谢谢。

最佳答案

似乎这是 gulp 的上游问题,我们也遇到了同样的麻烦。现在应该通过此提交修复:https://github.com/gulpjs/gulp/commit/a010db615fae4fbf8ecfdaff5530a4d84107d984

关于node.js - Yoeman 与generator-fountain-webapp 发生错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48047544/

相关文章:

javascript - 在 yeoman 为 Angular Fullstack 生成的代码结构中提供静态内容

yeoman 在模板中打印代码字符

node.js - Heroku 部署 - 找不到路径

node.js - 在 Sails.js 中使用 express 中间件来提供静态文件

javascript - 不使用 .pipe() 调用 gulp-notify

javascript - 不使用 run() 编写 gulpfile.js

javascript - 如何在 Yeoman 生成器安装完成后运行 Grunt 任务?

node.js - 为 ARM6 (Raspberry Pi) 交叉编译 Node.js

javascript - 处理和替换双花括号内的文本

javascript - Gulp gulp-less 包含组件子文件夹