我无法打开其他人的反应项目?

  • 本文关键字:项目 其他人 reactjs
  • 更新时间 :
  • 英文 :


我正在尝试在本地主机上运行反应应用程序,这是一个未在我的机器上创建的项目。我收到这些错误!

PS C:WINDOWSSystem32WindowsPowerShellv1.0> npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:WINDOWSSystem32WindowsPowerShellv1.0package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 
'C:WINDOWSSystem32WindowsPowerShellv1.0package.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:UsersAbdullah ChAppDataRoamingnpm-cache_logs2020-02- 
03T19_49_57_690Z-debug.log

cd 到项目文件夹中(通过命令行( -> npm install -> npm start

首先,这可能是因为 Node 和 npm 的版本不同。 请与创建应用程序的主机使用相同的版本。

如果它不起作用,请删除node_modules目录并运行命令"npm install"。之后运行命令"npm 启动"。 请使用稳定版本的 Node 和 npm 来执行这些操作。

也许它会起作用。

相关内容

最新更新