首页 > 解决方案 > Expo-cli 安装停止并出现错误 npm ERR!cb() 从未调用过

问题描述

我尝试安装 expo-cli 但不幸的是它因以下错误而停止。

freduah@freduah:~$ npm install -g expo-cli
npm WARN deprecated graphql-tools@3.0.0: This package has been deprecated and now it only exports makeExecutableSchema.\nAnd it will no longer receive updates.\nWe recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/freduah/.npm/_logs/2021-09-28T14_47_55_893Z-debug.log
freduah@freduah:~$ 

我试图向社区报告,npm community但社区不再

标签: node.jsreact-nativenpmexpo

解决方案


如果您在 Windows 中,请添加/允许 NodeJS JavaScript 运行时通过您的专用网络中的防火墙。


推荐阅读