简体   繁体   English

npm WARN deprecated @npmcli/move-file@2.0.1:此功能已移至@npmcli/fs

[英]npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs

While installing Angular cli using the command: npm install -g @angular/cli I am getting this warning.使用以下命令安装 Angular cli 时:npm install -g @angular/cli 我收到此警告。 I am using node version 16.17.0 and npm version 8.19.2我正在使用节点版本 16.17.0 和 npm 版本 8.19.2

I wanted to install angular cli.我想安装 angular cli。 But ng command not working但是 ng 命令不起作用

Try the command 'ng v' and check if it asks any question about sharing data about this project with the Angular Team at Google google or any question at all about google say N as no.尝试命令'ng v'并检查它是否询问有关与 Google google 的 Angular 团队共享有关此项目的数据的任何问题,或者有关 google 的任何问题都说N为否。 If it shows angular versions then it means angular/cli is installed如果它显示 angular versions 那么这意味着安装了 angular/cli

I had the same problem recently.我最近遇到了同样的问题。 I tried uninstalling angular and reinstalling it but there were already 'ng' files at the location:我尝试卸载 angular 并重新安装它,但该位置已经有“ng”文件:

C:/Users/<your_user_name>/AppData/Roaming/npm

To resolve the issue, go to that npm folder and delete the following files:要解决此问题,请将 go 转到该 npm 文件夹并删除以下文件:

  • ng
  • ng.cmd ng.cmd
  • ng.ps1 ng.ps1

Once these files are removed, reinstall angular cli.删除这些文件后,重新安装 angular cli。 Follow the guide here to clear the cache and do a clean install: [https://www.javatpoint.com/uninstall-and-reinstall-angular-cli][1]按照此处的指南清除缓存并进行全新安装:[https://www.javatpoint.com/uninstall-and-reinstall-angular-cli][1]

The ng command should work now. ng 命令现在应该可以工作了。 Check with the below command使用以下命令检查

ng --version

References: [1]: https://www.javatpoint.com/uninstall-and-reinstall-angular-cli参考资料:[1]: https://www.javatpoint.com/uninstall-and-reinstall-angular-cli

暂无
暂无

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

相关问题 Angular cli 未安装。 (npm warn deprecated @npmcli/move-file@2.0.1:此功能已移至@npmcli/fs) - Angular cli is not installing. (npm warn deprecated @npmcli/move-file@2.0.1: this functionality has been moved to @npmcli/fs) WARN deprecated request@2.88.2: request has been deprecated, npm WARN deprecated har-validator@5.1.5 - WARN deprecated request@2.88.2: request has been deprecated, npm WARN deprecated har-validator@5.1.5 npm WARN弃用了npmconf@2.1.2:这个软件包已经重新集成到npm中,现在已经过时了npm - npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm npm WARN不推荐使用npmconf@2.1.2:此软件包已重新集成到npm中,并且相对于npm已过时 - npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm npm WARN deprecated tslint@6.1.2: TSLint 已被弃用,取而代之的是 ESLint - npm WARN deprecated tslint@6.1.2: TSLint has been deprecated in favor of ESLint npm WARN 已弃用 graceful-fs@3.0.8:graceful-fs 版本 3 - npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 Laravel npm安装获取警告 - npm WARN弃用了graceful-fs - Laravel npm install getting warnings - npm WARN deprecated graceful-fs 错误:找不到模块 npmlog(npmcli 需要) - Error : cannot find module npmlog (required by npmcli) 如何修复“npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142”错误Windows 10? - How to fix "npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142" error in Windows 10? npm WARN不推荐使用的minimatch - npm WARN deprecated minimatch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM