【发布时间】:2017-12-18 13:19:20
【问题描述】:
我在一个项目上工作并使用了 grunt,但我的问题是当我尝试创建一个 git add 时。
我收到以下错误是日志。希望有人可以帮助我顺便说一句,我在 Windows 10 上的 vs 代码中使用 PowerShell。我还使用其他终端(如 git bash)进行了测试,但仍然出现相同的错误消息。
期待我们如何解决它的一些想法。
> PS C:\xampp\htdocs\websites\Dropbox\testing-site1> git add .
> error: open("node_modules/.bin/grunt"): Invalid argument error: unable to index file node_modules/.bin/grunt fatal: updating files failed
> PS C:\xampp\htdocs\websites\Dropbox\testing-site1> git status
> On branch master Changes not staged for commit:
> typechange: node_modules/.bin/grunt
我还在目录中有一个 .gitignore 文件,其中包含以下代码以从 git 中排除节点模块,但我仍然得到上面解释的这个问题。
node_modules/
提前致谢。
【问题讨论】:
标签: git bash powershell gruntjs