创建新的 Angular 项目 - 包安装失败



使用 angular cli 创建新项目时出错 .it 显示

3492 verbose stack Error: 404 Not Found - GET https://registry.npmjs.org/error-ex
3492 verbose stack     at C:Program Files (x86)nodejsnode_modulesnpmnode_modulesnpm-registry-fetchcheck-response.js:104:15
3492 verbose stack     at runMicrotasks (<anonymous>)
3492 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:93:5)
3493 verbose statusCode 404
3494 verbose pkgid error-ex@^1.3.1
3495 verbose cwd C:UsersamemniAngulartesttestt
3496 verbose Windows_NT 10.0.17134
3497 verbose argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--quiet"
3498 verbose node v12.13.0
3499 verbose npm  v6.12.0
3500 error code E404
3501 error 404 Not Found - GET https://registry.npmjs.org/error-ex
3502 error 404
3503 error 404 'error-ex@^1.3.1' is not in the npm registry.
3504 error 404 You should bug the author to publish it (or use the name yourself!)
3505 error 404 It was specified as a dependency of 'parse-json'
3506 error 404 Note that you can also install from a
3507 error 404 tarball, folder, http url, or git url.
3508 verbose exit [ 1, true ] 

我试过: 1 -npm 清除缓存 --强制并手动删除 npm 缓存文件夹 2-升级和更改角度CLI版本 3-更改注册表:npm配置集注册表 http://registry.npmjs.org 他们都没有工作

角度 CLI:9.0.1 节点:12.13.0 操作系统: win32 ia32 视窗 10

请参阅此问题

npm 安装失败,"错误ex@^1.3.1"不在 npm 注册表中

当前缺少一个 NPM 包存储库 (404( - 因此依赖于该包的所有 npm 都已损坏。 它正在该线程中被跟踪,对于我们这些受影响的人,我们也将更新该线程。

将注册表设置为 this 并 全局安装依赖项。然后重新创建新应用程序。

npm config set registry http://registry.npm.taobao.org
npm install -g error-ex@1.3.1

吴新我的新应用程序

来源 :https://github.com/Qix-/node-error-ex/issues/13

最新更新