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

脚手架 跑不起来 #3

Open
vasesen opened this issue Mar 7, 2018 · 3 comments
Open

脚手架 跑不起来 #3

vasesen opened this issue Mar 7, 2018 · 3 comments

Comments

@vasesen
Copy link

vasesen commented Mar 7, 2018

flow init 报错 无法初始化项目

@tower1229
Copy link
Collaborator

@vasesen flow init只是从GitHub仓库下载代码,排除网络原因应该不会报错。你把报错的截图发上来我看下吧

@vasesen
Copy link
Author

vasesen commented Mar 8, 2018

➜ ~ flow init
env: node\r: No such file or directory
➜ ~
就是这样一个报错

@tower1229
Copy link
Collaborator

我查了一下MacOS下报这个错误可能是因为不兼容\r\n换行符导致的,参考:https://stackoverflow.com/questions/18492897/env-node-r-no-such-file-or-directory-with-cordova-cli

flow init下载模板用的npm包是download-git-repo,猜测可能是这个包有问题,我刚升级了一下,把几个依赖包升到了最新版本,你再试下

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

2 participants