简体   繁体   English

发出带有已弃用警告的 npm install -g expo-cli

[英]issue npm install -g expo-cli with deprecated warnings

I can't install expo-cli , I've tried to run npm audit fix --force as suggested by terminal still got same warnings & won't install.我无法安装expo-cli ,我尝试运行npm audit fix --force终端建议仍然收到相同的警告并且无法安装。 I also tried to uninstall node js & npm (deleting all related folders & files) then install both again with the latest LTS version of node 16.13.1 & npm 8.3.0 , but still can't install it and have same warnings as below ss:我还尝试卸载节点 js 和 npm (删除所有相关文件夹和文件),然后使用节点16.13.1和 npm 8.3.0的最新 LTS 版本再次安装,但仍然无法安装它并具有与以下相同的警告ss:

在此处输入图像描述

The installation looks successful, albeit producing some deprecation warnings.安装看起来很成功,尽管会产生一些弃用警告。 While you should use a tool like npm audit to understand the risks you may be facing by using these deprecated dependencies, the installation seems to have been successful, and you can use expo-cli normally.虽然您应该使用npm audit之类的工具来了解使用这些已弃用的依赖项可能面临的风险,但安装似乎已经成功,您可以正常使用expo-cli

Seems the issue is in git bash terminal, I used powershell and it worked!似乎问题出在 git bash 终端中,我使用了 powershell 并且有效!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM