admin管理员组文章数量:1334656
I followed this tutorial /tools/cli/setup-local to set up local environment and workspace (Angular).
The npm
version was 10.9.0 and node
version was 22.11.0
Everything went smoothly until I run this line ng new new_project
on my terminal. The problem was like the image attached and I didn't know how to fix this problem (although I asked the ChatGPT for clarification).
Do you know how to fix this problem? Thank you so much!
I followed this tutorial https://angular.dev/tools/cli/setup-local to set up local environment and workspace (Angular).
The npm
version was 10.9.0 and node
version was 22.11.0
Everything went smoothly until I run this line ng new new_project
on my terminal. The problem was like the image attached and I didn't know how to fix this problem (although I asked the ChatGPT for clarification).
Do you know how to fix this problem? Thank you so much!
Share Improve this question edited Nov 20, 2024 at 8:11 JSON Derulo 17.9k11 gold badges57 silver badges75 bronze badges asked Nov 20, 2024 at 7:51 Gia Khánh LêGia Khánh Lê 31 bronze badge 2- I cannot reproduce, for me running the same command with the same npm/Node version works – JSON Derulo Commented Nov 20, 2024 at 8:13
- check your network for any kind of blocker or use --f :) – TechVision Commented Nov 20, 2024 at 8:14
1 Answer
Reset to default 0As of me issue happen due to cache.
npm cache verify
then try:
npm cache clean --force
npm install –g @angular/cli@latest
ng new <YourProjectName>
本文标签: npmProblems when setting up the environment (Angular)Stack Overflow
版权声明:本文标题:npm - Problems when setting up the environment (Angular) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742373514a2462701.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论