Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrat init #6

Closed
lichunqiang opened this issue Aug 13, 2014 · 12 comments
Closed

scrat init #6

lichunqiang opened this issue Aug 13, 2014 · 12 comments

Comments

@lichunqiang
Copy link

问题

在空目录下执行:

$ scrat init

报错:

 error You don't seem to have a generator with the name scrat installed.

文档中说:

执行一下,你就知道,这里就不赘述了。

猜测

我又全局安装了:

$ npm install generator-scrat -g

结果一样。

环境

scrat v0.2.4-14
node v0.10.29
@lichunqiang
Copy link
Author

@fouber

@fouber
Copy link
Member

fouber commented Aug 13, 2014

@lichunqiang

重新安装一下scrat:

npm install -g scrat

然后在执行初始化:

scrat init -c

试一下

@lichunqiang
Copy link
Author

@fouber 还是一样的错误。

@fouber
Copy link
Member

fouber commented Aug 13, 2014

@lichunqiang

报一下你的操作系统信息,我看看

@fouber
Copy link
Member

fouber commented Aug 13, 2014

@lichunqiang

还有你的scrat全局安装目录路径

@lichunqiang
Copy link
Author

@fouber
全局安装路径:

C:\Users\Administrator\AppData\Roaming\npm\node_modules\scrat

操作系统:

win7旗舰版, 64位

@lichunqiang
Copy link
Author

qq 20140813131128

解决了。

我在安装npm install yo -g的时候出现上面的报错信息。按照解决方案做了之后,在执行scrat init就成功了!

@fouber
Copy link
Member

fouber commented Aug 13, 2014

@lichunqiang

ok,有问题随时交流

@lichunqiang
Copy link
Author

多谢快速反馈

@Megasu
Copy link

Megasu commented Dec 11, 2014

error You don't seem to have a generator with the name scrat installed.
帮我同事安装scrat,遇到的问题一样,你之前说的解决方案在哪里,能给个链接吗
@lichunqiang

@lichunqiang
Copy link
Author

@Megasu 正如我截图的那个回复,node path的环境变量没设置
https://github.com/sindresorhus/guides/blob/master/set-environment-variables.md#windows

@Megasu
Copy link

Megasu commented Dec 12, 2014

其实环境变量已经设置了,但是还是不行,我猜测是npm那里除了错误。
因为我曾经帮朋友装nodejs弄grunt的时候,安装npm出了问题,环境什么的设好了,不行,后来在'C:\Users\Administrator\AppData\Roaming\ '新建了一个npm的文件夹,Okay。
但是按照之前的思路走,结果还是按照是失败。

node v0.10.33
npm 1.4.28
scrat v0.3.2-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants