简体   繁体   English

角度版本升级出现 404 错误(v5 到 v6)

[英]angular version upgrade giving 404 error (v5 to v6)

We are trying to upgrade our angular application(v5) to latest and we tried to follow step listed on https://update.angular.io/ .我们正在尝试将我们的 angular 应用程序(v5)升级到最新版本,并尝试按照https://update.angular.io/ 上列出的步骤进行操作。 We are taking step by step version upgrade for it ie v5->v6-> v7....我们正在为它逐步进行版本升级,即 v5->v6-> v7....

We followed following step while upgrading from v5 to v6我们在从 v5 升级到 v6 时遵循了以下步骤

  1. Remove old angular cli and install angular cli v6 globally删除旧的 angular cli 并全局安装 angular cli v6

     npm install -g @angular/cli@6
  2. Install the angular cli v6 locally在本地安装 angular cli v6

     npm install @angular/cli@6

Looking into other online resources, at this point we supposed to get the warning message but we have not got any.查看其他在线资源,此时我们应该收到警告消息,但我们没有收到。

  1. update angular cli更新角度cli

     ng update @angular/cli

Step 3 is giving different 404 error each time we run it like每次我们运行时,第 3 步都会给出不同的 404 错误

  • 404 Not Found: codelyzer 404未找到:codelyzer
  • 404 Not found extract-textwebpack-plugin 404 未找到提取-textwebpack-plugin
  • ... ...

I checked all packages that is throwing 404 error and all those packages does exist on dev dependency part.我检查了所有抛出 404 错误的包,所有这些包都存在于开发依赖部分。 can someone assist me what step I am missing here or any extra package I need to install to make it work?有人可以帮助我在这里缺少什么步骤,或者我需要安装任何额外的软件包才能使其正常工作吗?

If you check the documentation here you can see that you need to specify version 6 and not try to update to the latest version ( https://update.angular.io/?l=2&v=5.0-6.0 )如果您查看此处的文档,您可以看到您需要指定版本 6,而不是尝试更新到最新版本( https://update.angular.io/?l=2&v=5.0-6.0

At step 3 do this: ng update @angular/cli@6在第 3 步执行此操作: ng update @angular/cli@6

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

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