简体   繁体   English

如何知道npm软件包是否支持Angular x版本?

[英]How to know if npm package supports Angular x version?

My project has lots of dependencies on libraries that supports Angular2, but not Angular6 for ex. 我的项目对支持Angular2的库有很多依赖性,但对于Angular6则没有。 Now I find it difficult to accurately tell from reading their github pages do they support Angular2. 现在,我发现很难通过阅读他们的github页面来准确判断它们是否支持Angular2。 One thought - look at package.json typescript version - if bellow 2.7.2 (lowest Angular6 typescript version), it absolutelly does not support Angular6. 一种想法-查看package.json打字稿版本-如果低于2.7.2(最低Angular6打字稿版本),则它绝对不支持Angular6。 Is that right? 那正确吗? How to know from github page does library support Angular6? 如何从github页面知道库是否支持Angular6?

Important Point to move angular to higher angular version 将角移到更高角版本的要点

1) Remove all node modules 2) Always make backup of app folder 3) Install angular latest version using cli (ex 4, 6) - ng new projectname 4) install all third party dependencies individually which are listed in package.json of angular 2 project ex. 1)删除所有节点模块2)始终备份应用程序文件夹3)使用cli(ex 4,6)-ng安装新的项目名称安装ng最新版本4)单独安装在angular 2的package.json中列出的所有第三方依赖项项目前 [lodash , primeng, ] using npm install -- save 5) please don't install all core modules of angular using npm. [lodash,primeng,]使用npm install-保存5) 请不要使用npm安装angular的所有核心模块。 it automatically add while add new project using ng new command. 它会在使用ng new命令添加新项目时自动添加。 ex ("@angular/forms" ,"@angular/http", "@angular/platform-browser") 例如(「@ angular / forms」,「@ angular / http」,「@ angular / platform-b​​rowser」)

it is best way to convert angular 2 to angular higher version 最好的方法是将angular 2转换为角度更高的版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM