Node.js Yoeman与generator fountain webapp一起出现错误

Node.js Yoeman与generator fountain webapp一起出现错误,node.js,gulp,yeoman-generator,yo,Node.js,Gulp,Yeoman Generator,Yo,我是尤曼和诺德的新手。我当时正试着跟着教程走 我在步骤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

我是尤曼和诺德的新手。我当时正试着跟着教程走

我在步骤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/
这似乎与吞咽有关,但我不知道如何解决它。我在conda虚拟环境中使用NodeJS和npm

yo版本是2.0.0 npm版本是5.4.2 节点版本是v8.8.1


请帮忙。谢谢。我也有同样的问题。如果您有任何不推荐的错误,请查找此错误。 我发现这个:
已弃用bower@1.8.2:…嘘!您的项目可以随时停止工作,因为它的依赖关系可能会更改。通过迁移到以下位置来防止这种情况:https://bower.io/blog/2017/how-to-migrate-away-from-bower/
我认为这就是问题所在。
祝你好运。

这似乎是gulp的上游问题,我们也遇到了同样的麻烦。现在应该通过此提交来修复:

这两个文件似乎已更改。执行一次git重置--hard没有任何帮助。