在此项目中找不到EXPO-您是否已运行纱线/NPM安装? [英] Unable to find expo in this project - have you run yarn / npm install yet?
本文介绍了在此项目中找不到EXPO-您是否已运行纱线/NPM安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法执行expo start
命令。
错误消息:
PS C:UsersJacky GoyalOneDriveDesktop
n1my-project> expo start
Starting project at C:UsersJacky GoyalOneDriveDesktop
n1my-project
Unable to find expo in this project - have you run yarn / npm install yet?
├─ action (C:UsersJacky GoyalAppDataRoaming
pm
ode_modulesexpo-clisrccommandsstart.ts:34:11)
├─ C:UsersJacky GoyalAppDataRoaming
pm
ode_modulesexpo-clisrccommandsstart.ts:135:22
└─ expo start (C:UsersJacky GoyalAppDataRoaming
pm
ode_modulesexpo-clisrcexp.ts:350:7)
PS C:UsersJacky GoyalOneDriveDesktop
n1my-project> npm install
added 28 packages, removed 46 packages, changed 34 packages, and audited 653 packages in 8s
17 packages are looking for funding
run `npm fund` for details
7 low severity vulnerabilities
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
PS C:UsersJacky GoyalOneDriveDesktop
n1my-project> npm audit
NPM审计报告
node-fetch <=2.6.0 || 3.0.0-beta.1 - 3.0.0-beta.8
Denial of Service - https://npmjs.com/advisories/1556
No fix available
node_modules/isomorphic-fetch/node_modules/node-fetch
isomorphic-fetch 2.0.0 - 2.2.1
Depends on vulnerable versions of node-fetch
node_modules/isomorphic-fetch
fbjs 0.7.0 - 1.0.0
Depends on vulnerable versions of isomorphic-fetch
node_modules/fbjs
metro 0.22.1 - 0.63.0
Depends on vulnerable versions of fbjs
Depends on vulnerable versions of metro-config
node_modules/metro
@react-native-community/cli *
Depends on vulnerable versions of metro
Depends on vulnerable versions of react-native
node_modules/@react-native-community/cli
react-native <=0.0.0-ffdfbbec0 || 0.22.0-rc - 0.64.0-rc.4
Depends on vulnerable versions of @react-native-community/cli
Depends on vulnerable versions of fbjs
node_modules/react-native
metro-config <=0.63.0
Depends on vulnerable versions of metro
node_modules/metro-config
7 low severity vulnerabilities
Some issues need review, and may require choosing
a different dependency```
推荐答案
- 将EXPO版本从";^1.0.0";更改为&qot;~41.0.1";(Package.json)
- NPM安装
- NPM启动
这篇关于在此项目中找不到EXPO-您是否已运行纱线/NPM安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文