我是 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/