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

项目跑不起来咋回事? #11

Open
kiddhia opened this issue Nov 18, 2019 · 4 comments
Open

项目跑不起来咋回事? #11

kiddhia opened this issue Nov 18, 2019 · 4 comments

Comments

@kiddhia
Copy link

kiddhia commented Nov 18, 2019

错误提示:

$ node ./node_modules/.bin/ng serve --host 0.0.0.0 --disable-host-check --port 4400 --live-reload false
\panel-magix\node_modules.bin\ng:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")

环境:
@angular/cli: v8.3.19
node: v12.13.0
npm: v6.12.0
yarn: v1.19.1
os: win10

重现步骤:
1.yarn global add @angular/cli
2.yarn
3.yarn run start

试过重新安装依赖,重新安装angular/cli,也试过直接用npm而不用yarn,都是一样的结果

@chengqwerty
Copy link

他应该是mac或者Linux,你直接ng server运行吧。

@oppoffice
Copy link

我用的是 mac , 在使用 npm i 安装完依赖后 yarn start 项目就可以跑起来了.

@1inus
Copy link

1inus commented May 9, 2020

我用windows也是报同样的错,用mac就没事

@rhlin
Copy link

rhlin commented Mar 16, 2021

把start改为 直接从cli的bin里的ng就可以了
"start": "node ./node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --disable-host-check --port 4400 --live-reload false",

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

5 participants