首页 > 解决方案 > React-Native 'ENOENT:没有这样的文件或目录,打开 'C:\users\lhlin\package.json''

问题描述

这是第一次尝试使用 expo 使用 React Native,并且出现了此消息

PS C:\users\lhlin> npm start
npm ERR! code ENOENT 
npm ERR! syscall open
npm ERR! path C:\users\lhlin\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\users\lhlin\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\lhlin\AppData\Roaming\npm-cache\_logs\2021-06-19T06_10_39_141Z-debug.log

我不知道出了什么问题。请帮忙。

标签: node.jsreact-nativenpm

解决方案


推荐阅读