服务器部署是报这个了,谁有空帮忙看看嘛
来源:13-2 服务器第一次部署与发布

Chaney
2018-05-31
/www/koa2/production/source/node_modules/mongoose/lib/services/common.js: Cannot read property 'process' of undefined
at Object.run (/www/koa2/production/source/node_modules/parcel-bundler/src/worker.js:21:27)
at Child.handleRequest (/www/koa2/production/source/node_modules/parcel-bundler/src/workerfarm/child.js:57:49)
at Child.messageListener (/www/koa2/production/source/node_modules/parcel-bundler/src/workerfarm/child.js:32:19)
at emitTwo (events.js:126:13)
at process.emit (events.js:214:7)
at emit (internal/child_process.js:772:12)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! trailer-by-node@1.0.0 build: `rm -rf ./dist && parcel build src/index.html --no-cache -d dist --public-url /`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the trailer-by-node@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-05-31T15_16_32_170Z-debug.log
post-deploy hook failed
Deploy failed
1回答
-
Scott
2018-06-06
你直接 ssh 到服务器上,人肉执行下命令试试看,先试试直接 node start.js 启动服务看能不能成功?
00
相似问题