Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Mac OS 10.7.5 上安装了节点 v0.8.14。然后我用npm install -g grunt.
npm install -g grunt
Node 可以完美运行,而 Grunt 则不行。它一直在说:-bash: exec: grunt: not found
-bash: exec: grunt: not found
知道我错过了什么吗?
默认情况下,npm 安装到 /usr/local。/usr/local/bin/grunt在你的外壳中尝试。为了让您简单地键入grunt,添加
/usr/local/bin/grunt
grunt
export PATH="$PATH:/usr/local/bin"
到~/.profile文件。
~/.profile