-
Notifications
You must be signed in to change notification settings - Fork 23
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
ng new demo 时 出现 setTimeout is not defined错误 #168
Comments
请提供更详细的信息,比如 ng cli 版本,npm registry 设置,或者其它可能比较特别的地方。 |
ng cli版本: |
MacBook-Pro-3:angular Albern$ ng new angular1 --strict |
看起来很正常,尝试升级下Node版本?我记得ng11最低好像需要node12? |
尝试将node升级为v14.16.0 ,还是同样的错误 |
npm升级到最新版本也不行 |
执行ng --version 显示 Angular: Package Version@angular-devkit/architect 0.1102.2 (cli-only) |
我自己找到原因了,原来是用cnpm 安装的原因,我卸载了,重新npm下载了一遍,就可以了 |
卸载@angular/cli么? |
就之前的描述,应该是先在全局卸载 |
就是我之前下载angular/cli是用cnpm下载的,成功下载后创建的项目不可以用,出现如上bug,然后我把之前的angular/cli卸载,重新用npm下载,后就没有问题了,应该是cnpm的软件包的问题。 |
No description provided.
The text was updated successfully, but these errors were encountered: