uboxing truffle react 时,没有 package.json 文件。结果,我无法启动程序

When uboxing truffle react, there is no package.json file. As a result, I cannot start the program

我按照 truffle 网站上的说明拆箱 reacthttps://github.com/truffle-box/react-box

但是,当我输入 'npm run start' 时,出现错误

npm ERR! path D:\COMP495\testReact\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'D:\COMP495\testReact\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\l_zha\AppData\Roaming\npm-cache\_logs18-11-21T12_45_14_733Z-debug.log

我可能注意到,出于某种原因,我的根目录中没有 'package.json' 文件。我的客户端文件夹中有一个 'package.json' 文件,因此我可以 运行 React,但未成功。

想通了。我需要从客户端目录 运行 它。从那里,在 /Client/src/ 中,我需要从 /build/contracts/ 添加合同文件夹,而不是从根目录添加合同文件夹,因为那里没有 json 文件。