MacO上的Grunt通知失败

时间:2016-03-01 15:34:06

标签: javascript node.js maven gruntjs grunt-notify

我正在使用基于MacOS构建的相当复杂的现有软件系统。它是使用Maven构建的。这个版本在过去对我来说是正常的,目前适用于我的团队中的其他人,所以这指的是我在本地做的事情导致失败。我最近不得不重新安装npm,grunt和bower。现在我的机器上有三个干净的安装。当它到达使用grunt通知的部分时,我会收到一个致命的错误:

>> npm Fatal error: spawn /private/tmp/git-repo/lumify-data/lumify-public/web/war/src/main/webapp/node_modules/grunt-notify/lib/platforms../bin/Grunt.app/Contents/MacOS/Grunt ENOENT

当我从命令行运行Grunt-notify时,它已安装并正常工作。有人能指出我在哪里看的方向?我错过了某个地方的配置文件吗?

1 个答案:

答案 0 :(得分:2)

当我更新node / npm时,我遇到了同样的问题。 你可以看到它已经在这里讨论了 - 问题是由于路径不正确:https://github.com/dylang/grunt-notify/issues/118

他们已经修复了它,所以你需要更新你在package.json中使用的grunt-notify版本:“grunt-notify”:“^ 0.4.5”

然后运行: npm uninstall grunt-notify npm install grunt-notify