ng new setTimeout is not defined
因为是cpnpm安装的angular cli导致
1
2
|
sudo npm uninstall -g angular@cli
sudo npm install -g angular@cli
|
ng new too slow
因为部分还是走了外网,不是国内源
1
2
3
|
ng new projects-path --skip-install=true
cd projects-path
npm install
|
npm提示有proxy
1
2
3
4
|
add to your ~/.npmrc
https_proxy=null
https-proxy=null
proxy=null
|
Cannot find module '@ngx-translate/core'
NullInjectorError: No provider for HttpClient!
app.module需要引入HttpClient module
1
|
import { HttpClientModule } from '@angular/common/http';
|
error TS2564: Property 'busy' has no initializer and is not definitely assigned in the constructor.
e implicitly has an 'any' type
bundle initial exceeded maximum budget. Budget 1.00 MB
angular.json搜索budgets修改对应的大小即可