Javascript 运行PM2启动后,无法从浏览器打开应用程序。PM2日志显示模块未找到异常

Javascript 运行PM2启动后,无法从浏览器打开应用程序。PM2日志显示模块未找到异常,javascript,node.js,reactjs,ubuntu,Javascript,Node.js,Reactjs,Ubuntu,应用程序在npm start下运行正常。之后,我使用npm start build构建应用程序,然后使用PM2 start 当我打开浏览器时,得到“页面无法显示”和一个错误日志,如下所示。有人能给我指出正确的方向吗 0|ezyatten | at getPublicUrl (/home/ubuntu/ezyattend/front/node_modules/react-scripts/config/paths.js:34:19) 0|ezyatten | at Object.&l

应用程序在
npm start
下运行正常。之后,我使用
npm start build
构建应用程序,然后使用
PM2 start

当我打开浏览器时,得到“页面无法显示”和一个错误日志,如下所示。有人能给我指出正确的方向吗

0|ezyatten |     at getPublicUrl (/home/ubuntu/ezyattend/front/node_modules/react-scripts/config/paths.js:34:19)
0|ezyatten |     at Object.<anonymous> (/home/ubuntu/ezyattend/front/node_modules/react-scripts/config/paths.js:91:14)
0|ezyatten |     at Module._compile (internal/modules/cjs/loader.js:1015:30)
0|ezyatten |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
0|ezyatten |     at Module.load (internal/modules/cjs/loader.js:879:32)
0|ezyatten |     at Function.Module._load (internal/modules/cjs/loader.js:724:14)
0|ezyatten |     at Module.require (internal/modules/cjs/loader.js:903:19) {
0|ezyatten |   code: 'MODULE_NOT_FOUND',
0|ezyatten |   requireStack: [
0|ezyatten |     '/home/ubuntu/ezyattend/front/node_modules/react-scripts/config/paths.js',
0|ezyatten |     '/home/ubuntu/ezyattend/front/node_modules/react-scripts/config/env.js',
0|ezyatten |     '/home/ubuntu/ezyattend/front/node_modules/react-scripts/scripts/start.js'
0|ezyatten |   ]
0|ezyatten | }```








getPublicUrl(/home/ubuntu/ezyatten/front/node_modules/react scripts/config/path.js:34:19)上的
0 | ezyatten |
0 | ezyatten | at对象。(/home/ubuntu/ezyattend/front/node_modules/react scripts/config/path.js:91:14)
0 | ezyatten | at Module._编译(internal/modules/cjs/loader.js:1015:30)
0 | ezyatten | at Object.Module._extensions..js(internal/modules/cjs/loader.js:1035:10)
0 | ezyatten | at Module.load(内部/modules/cjs/loader.js:879:32)
0 | ezyatten | at Function.Module._load(内部/modules/cjs/loader.js:724:14)
0 | ezyatten | at Module.require(内部/modules/cjs/loader.js:903:19){
0 | ezyatten |代码:“未找到模块”,
0 | ezyatten | requireStack:[
0 | ezyatten |'/home/ubuntu/ezyatten/front/node_modules/react scripts/config/path.js',
0 | ezyatten |'/home/ubuntu/ezyatten/front/node_modules/react scripts/config/env.js',
0 | ezyatten |'/home/ubuntu/ezyatten/front/node_modules/react scripts/scripts/start.js'
0 | ezyatten |]
0 | ezyatten |}```