最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

error TS5083: Cannot read file node

网站源码admin52浏览0评论

error TS5083: Cannot read file node

error TS5083: Cannot read file node

我正在运行

sudo npm install -g @angular/cli
,我遇到了一堆错误。

最新的是这个:

npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm ERR! code 2
npm ERR! git dep preparation failed
npm ERR! command /opt/homebrew/Cellar/node/20.0.0/bin/node /opt/homebrew/lib/node_modules/npm/bin/npm-cli.js install --force --cache=~/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 2
npm ERR! npm ERR! path ~/.npm/_cacache/tmp/git-clonecrQU0L
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c npm run compile
npm ERR! npm ERR! > [email protected] precompile
npm ERR! npm ERR! > rimraf build
npm ERR! npm ERR! 
npm ERR! npm ERR! 
npm ERR! npm ERR! > [email protected] compile
npm ERR! npm ERR! > tsc
npm ERR! npm ERR! 
npm ERR! npm ERR! error TS5083: Cannot read file '~/.npm/_cacache/tmp/git-clonecrQU0L/node_modules/gts/tsconfig-google.json'.
npm ERR! npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in: ~/.npm/_logs/2023-05-01T22_18_21_178Z-debug-0.log

npm ERR! A complete log of this run can be found in: ~/.npm/_logs/2023-05-01T22_18_10_638Z-debug-0.log

如何修复此问题并在我的 Mac 上成功安装 Angular CLI?

回答如下:

奇怪,我今天也开始收到这个错误,它停止了我的 CI 运行。似乎有人在 GitHub 上打开了一个 related(?) issue,可能会解决这个问题。希望我们很快就会看到修复。

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论