error TS5083: Cannot read file node

编程入门 行业动态 更新时间:2024-10-02 16:16:30

<a href=https://www.elefans.com/category/jswz/34/1771302.html style=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,可能会解决这个问题。希望我们很快就会看到修复。

更多推荐

error TS5083: Cannot read file node

本文发布于:2024-05-30 16:16:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1770683.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:error   read   node   file

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!