我已经从github下载了这个项目。https://github.com/john-smilga/react-projects/tree/master/01-birthday-reminder
但是当用visual studio代码打开它时,我看到以下消息:
PS C:UsersSistemasDownloadsreact-projects-master (1)react-projects-master 1-birthday-reminder> npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:UsersSistemasDownloadsreact-projects-master
(1)react-projects-master 1-birthday-reminder/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:UsersSistemasDownloadsreact-projects-master (1)react-projects-master 1-birthday-reminderpackage.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:UsersSistemasAppDataLocalnpm-cache_logs2022-07-04T17_54_32_986Z-debug-0.log
PS C:UsersSistemasDownloadsreact-projects-master (1)react-projects-master 1-birthday-reminder>
这是因为没有包。在该路径下的Json文件中,在setup目录中启动命令。您的机器上的路径可以是C:UsersSistemasDownloadsreact-projects-master (1)react-projects-master 1-birthday-remindersetup