create-react-app React项目无法启动/运行

lnlaulya  于 2个月前  发布在  React
关注(0)|答案(1)|浏览(34)

你好,

当我尝试在VS Code中构建一个新的React项目时,无法运行"npm start"命令。

错误信息:

PS C:\Users\imman\OneDrive\Documents\React> npm start
npm ERR! Missing script: "start"
npm ERR!
npm ERR! Did you mean one of these?
 orites
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:npm ERR! C:\Users\imman\AppData\Local
pm-cache_logs\2022-01-20T06_20_10_915Z-debug-0.log"
Node JS版本是17.4.0,npm版本是8.3.1
2q5ifsrm

2q5ifsrm1#

是的,我昨天偶然发现了这个问题,但谢谢你花时间回复我的疑问。

2022年1月21日,晚上8点,Tanuj Kanti 写信给Immanuel-Prab:

嘿 @Immanuel-Prab < https://github.com/Immanuel-Prab >,终端显示这个错误是因为你在错误的文件夹中运行了这个命令。你的React文件夹里还有一个名为my-app的文件夹,里面放着所有的包,请确保你在正确的文件夹/目录中。"PS C:Users\imman\OneDriveDocuments\React\my-app> npm start",直接回复此邮件,在GitHub上查看,或取消订阅< https://github.com/notifications/unsubscribe-auth/ANME3SWTLLBFBPD25SJP2NDUXFUYXANCNFSM5ML3YXVA >。使用GitHub移动端(iOS)或Android< https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub >进行即时问题跟踪。你收到这封邮件是因为有人提到了你。消息ID:***@***.***>

相关问题