0
经过一个显然成功的全球安装gulp后,我仍然得到“命令未找到”的吞咽命令,如gulp -v
。我试图给$ PATH添加一些东西(下面的细节),但它没有帮助。我怀疑我需要确定gulp的全局安装位置,因此我可以将其添加到$ PATH。任何帮助将不胜感激!经过全球安装后,命令未找到
OSX 10.9.5
我输入到终端处于下面粗体,在灰色框是响应终端输出
NPM安装-g吞
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to [email protected]^4.0.0 as soon as possible.
npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade to [email protected]^4.0.0.
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to [email protected]^4.0.0 as soon as possible.
/Users/mh/.node/bin/gulp -> /Users/mh/.node/lib/node_modules/gulp/bin/gulp.js
/Users/mh/.node/lib
└── [email protected]
吞-v
-bash: gulp: command not found
我试着将在gulp安装结束时显示的三条路径添加到/etc/paths
(请参见下面的最后三行)。当我echo $PATH
但是gulp -v
仍然失败时,三条路径显示出来。
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/local/git/bin
/Users/mh/.node/lib
/Users/mh/.node/lib/node_modules/gulp/bin/
/Users/mh/.node/bin/gulp
一饮而尽-v
-bash: gulp: command not found