问题标签 [grunt-cli]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
67 浏览

node.js - -bash: grunt: command not found (nothing on SOF has worked yet)

I have tried everything I've found online and on SOF to fix the following problem and am coming up empty.

I'm on Mac and I built an entire web app use node.js and grunt. Everything ran beautifully until one day, I started getting this error:

Obviously, I did something, but I don't know what it is. I have tried:

  • reinstalling
  • this article
  • when I type test -e ~/.bash_profile && echo "Found" || echo "Not Found", it echoes Found.
  • when I follow the rest of the article, and try to install this is what terminal reads: grunt-cli successfully installed with a warning and location

  • My bash profile reads:

    export NVM_DIR="/Users/jennminerva/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm export PATH=/Users/jennminerva/.node_module.global/bin/grunt

    which I assume is correct but I'm quite out of my depth there.

I've been through literally every SOF entry about it, and I'm pretty sure I've tried all the solutions offered, so I assume I missed something, and I'm about to lose my mind.

0 投票
0 回答
33 浏览

gruntjs - 无法在 ubuntu 上找到本地咕噜声

我通过运行以下命令全局安装了 grunt

我还通过运行在本地安装了 grunt 和其他项目依赖项到我的项目中

但是 grunt 一直告诉我“无法找到本地 grunt”

我在 DigitalOcean 上使用 ubuntu 16.04 并且我安装了 nodejs 和 npm 有什么问题?

0 投票
3 回答
408 浏览

jenkins - 当 Grunt 在命令提示符下运行时,如何解决 jenkins 上的 grunt not recognizable 错误?

当 Grunt 在命令提示符下运行时,如何解决 jenkins 上的 grunt not recognizable 错误?

詹金斯输出:

0 投票
0 回答
1927 浏览

gruntjs - 致命错误:无法找到本地咕噜声。使用 Gruntfile.js

(初学者)(操作系统:mac)

我只是在我的本地安装 grunt,并在我的项目中编辑我的“Gruntfile.js”,当我尝试这个时:

它返回:

我在我的项目中很好,使用这个安装没有问题:

我想念什么?

谢谢时间。