해결된 질문
작성
·
185
0
먼저 질문 올리신분과 비슷한 증상같습니다..
혹시나해서 npm i 를 하고 npm start를 했는데도 동일한 증상이 나타납니다.
root@ip-172-31-45-247:/home/ubuntu/NodeBirdSNS/prepare/back# npm start
> react-nodebird-back@1.0.0 start /home/ubuntu/NodeBirdSNS/prepare/back
> node app
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module '../config/config'
Require stack:
- /home/ubuntu/NodeBirdSNS/prepare/back/models/index.js
- /home/ubuntu/NodeBirdSNS/prepare/back/routes/post.js
- /home/ubuntu/NodeBirdSNS/prepare/back/app.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/home/ubuntu/NodeBirdSNS/prepare/back/models/index.js:9:16)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/ubuntu/NodeBirdSNS/prepare/back/models/index.js',
'/home/ubuntu/NodeBirdSNS/prepare/back/routes/post.js',
'/home/ubuntu/NodeBirdSNS/prepare/back/app.js'
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-nodebird-back@1.0.0 start: `node app`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-nodebird-back@1.0.0 start 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/2021-03-26T07_09_22_389Z-debug.log