这是一个创建于 4140 天前的主题,其中的信息可能已经有所发展或是发生改变。
首次使用 node.js ,问题不一定表述清楚.详细描述一下:
1.使用 npm install -g yo grunt-cli bower 安装 yeoman
2.然后 输入命令 :
yo webapp
-bash: yo: command not found
根据网上的文档,使用 -g 安装成功以后,应该 yo 是个可以执行的命令.
3.我是用的系统是 osx 10.8.4, 请问我这样是什么原因呢?
2 条回复 • 1970-01-01 08:00:00 +08:00
|
|
1
honk 2013-06-19 16:58:01 +08:00 1
/usr/local/share/npm/bin 應該加這個到 PATH 吧
|
|
|
2
opengta 2013-06-19 17:15:38 +08:00
谢谢你.根据你的提示,终于找到原因了.
原来是 /usr/local/share/npm/bin 末尾多了一个空格.
|