码迷,mamicode.com
首页 > 其他好文 > 详细

Angular2升级到Angular4

时间:2017-08-04 14:27:10      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:command   row   dir   ati   log   rsh   shel   route   命令   

window

npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli@latest
Linux
rm
-rf node_modules dist # use rmdir /S/Q node_modules dist in Windows Command Prompt; use rm -r -fo node_modules,dist in Windows PowerShell npm install --save-dev @angular/cli@latest

升级包

// linux/mac
 npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@latest typescript@latest --save
 // Windows
 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
 更换一些其他包
 
 npm install zone.js@0.8.4 --save

   执行安装命令

 npm install

 

Angular2升级到Angular4

标签:command   row   dir   ati   log   rsh   shel   route   命令   

原文地址:http://www.cnblogs.com/wangking/p/7284764.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!