创建开始:https://angular.io/guide/setup-local 中的Get start >Set up
执行:npm install -g @angular/cli
看版本:ng version
出现:Typescript errors on @types\lodash\index.d.ts #417
使用:npm install @types/lodash@4.14.50
出自:https://github.com/SharePoint/sp-dev-docs/issues/417
出现:Module ‘" node_modules/@angular/core/index"’ has no exported member ‘InjectionToken’
使用:npm install @angular/common@latest @angular/compiler@latest @angular/compiler-cli@latest @angular/core@latest @angular/forms@latest @angular/http@latest @angular/platform-browser@latest @angular/platform-browser-dynamic@latest @angular/platform-server@latest @angular/router@latest @angular/animations@latest typescript@latest --save
and then run
npm install promise-polyfill --save-exact
出自:https:/