小编use*_*629的帖子

Yeoman | 找不到你的命令

看到有一些类似的问题,但没有找到足够的答案或适用于我的问题所以我以为我会再问一次.

我遇到了"$ yo"命令的问题,我的cmd一直告诉我找不到该命令.

我通过以下方式安装了自己:

$npm install -g yo
Run Code Online (Sandbox Code Playgroud)

没有任何问题.我还检查了我的$ PATH

$ echo $PATH
/c/Users/Anton/bin:.:/usr/local/bin:/mingw/bin:/bin:.:/c/Program Files (x86)/Java/jre7/bin:/usr/cmd:/usr/bin:/c/Program Files (x86)/nodejs/:/c/Users/Anton/AppData/Roaming/npm
Run Code Online (Sandbox Code Playgroud)

并确认yo与其他节点模块一起安装.我可以调用其他命令,例如:

$ bower

Usage:

bower <command> [<ar.....
Run Code Online (Sandbox Code Playgroud)

$ yeoman
==========================================================================
We're constantly looking for ways to make yeoman better!
May we anonymously report .....
Run Code Online (Sandbox Code Playgroud)

没有任何问题.虽然哟导致失败

$ yo
sh.exe": yo: command not found
Run Code Online (Sandbox Code Playgroud)

有没有人有什么错误的建议?我已经读过$ PATH可能有问题吗?我可以以任何方式重置它吗?

(操作系统:Windows 8.1 |节点v0.10.29)

node.js npm yeoman

23
推荐指数
3
解决办法
3万
查看次数

Thinkster.io Angularjs教程第3章 - 连接到Firebase的问题

我正在学习教程,构建一个与firebase数据库连接的angularjs应用程序.我坚持第3章,我的应用程序应该使它初始连接到数据库.我有点觉得问题摆在我面前,因为我的命令提示符和jshint告诉我:

Running "jshint:all" (jshint) task

app\scripts\controllers\posts.js
  line 0   col 0  Bad option: 'app'.
  line 8   col 1  'app' is not defined.

app\scripts\services\post.js
  line 0   col 0  Bad option: 'app'.
  line 2   col 1  'app' is not defined.

6 problems

Warning: Task "jshint:all" failed. Use --force to continue.

Aborted due to warnings.
Run Code Online (Sandbox Code Playgroud)

我的控制台给了我:

>Uncaught ReferenceError: app is not defined                      post.js
>Error: [$injector:unpr] Unknown provider: PostProvider <- Post
http://errors.angularjs.org/1.2.16/$injector/unpr?p0=PostProvider%20%3C-%20Post at http://localhost:9000/bower_components/angular/angular.js:78:12
at http://localhost:9000/bower_components/angular/angular.js:3705:19
at Object.getService [as get] (http://localhost:9000/bower_components/angular/angular.js:3832:39)
at http://localhost:9000/bower_components/angular/angular.js:3710:45 …
Run Code Online (Sandbox Code Playgroud)

javascript angularjs firebase gruntjs

3
推荐指数
1
解决办法
1076
查看次数

标签 统计

angularjs ×1

firebase ×1

gruntjs ×1

javascript ×1

node.js ×1

npm ×1

yeoman ×1