질문&답변
front 배포 후 사이트 연결할 수 없음 문제 질문드립니다.
일단 어제 끄고 다시 실행해서 다시 ip 맞춰 줬구요. pm2가 front 쪽에 제대로 설치가 안된거같아서 git pull 하고 build 하였습니다. 근데 node_moules가 꼬인거같아서 우분투 front 쪽 node_moules 하고 package.json.lock 날리고 기존 원래 package.json으로 npm i 후 npm run build 하니까 에러 로그가 올라오네요. 아래와 같은 에러인데 확인 부탁드립니다. sudo npx pm2 list 새로고침 표시 숫자는 이러합니다. 아 .. 어제 chrome 에러는 13.124.181.244 에러는 pending 돌면서 connection_refused 입니다.. 물론 지금 front ip는 다른거로 바껴있습니다. 다시 클론 받고 진행하는게 좋을까요.. ? 0|npm | at internal/main/run_main_module.js:17:47 { 0|npm | code: 'MODULE_NOT_FOUND', 0|npm | requireStack: [] 0|npm | } 0|npm | internal/modules/cjs/loader.js:892 0|npm | throw err; 0|npm | ^ 0|npm | 0|npm | Error: Cannot find module '/home/ubuntu/.npm/_npx/3296/lib/node_modules/pm2/lib/ProcessContainerFork.js' 0|npm | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15) 0|npm | at Function.Module._load (internal/modules/cjs/loader.js:745:27) 0|npm | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) 0|npm | at internal/main/run_main_module.js:17:47 { 0|npm | code: 'MODULE_NOT_FOUND', 0|npm | requireStack: [] 0|npm | } 0|npm | internal/modules/cjs/loader.js:892 0|npm | throw err; 0|npm | ^ 0|npm | 0|npm | Error: Cannot find module '/home/ubuntu/.npm/_npx/3296/lib/node_modules/pm2/lib/ProcessContainerFork.js' 0|npm | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15) 0|npm | at Function.Module._load (internal/modules/cjs/loader.js:745:27) 0|npm | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) 0|npm | at internal/main/run_main_module.js:17:47 { 0|npm | code: 'MODULE_NOT_FOUND', 0|npm | requireStack: [] 0|npm | } 0|npm | internal/modules/cjs/loader.js:892 0|npm | throw err; 0|npm | ^ 0|npm | 0|npm | Error: Cannot find module '/home/ubuntu/.npm/_npx/3296/lib/node_modules/pm2/lib/ProcessContainerFork.js' 0|npm | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15) 0|npm | at Function.Module._load (internal/modules/cjs/loader.js:745:27) 0|npm | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) 0|npm | at internal/main/run_main_module.js:17:47 { 0|npm | code: 'MODULE_NOT_FOUND', 0|npm | requireStack: [] 0|npm | } 0|npm | internal/modules/cjs/loader.js:892 0|npm | throw err; 0|npm | ^ 0|npm | 0|npm | Error: Cannot find module '/home/ubuntu/.npm/_npx/3296/lib/node_modules/pm2/lib/ProcessContainerFork.js' 0|npm | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15) 0|npm | at Function.Module._load (internal/modules/cjs/loader.js:745:27) 0|npm | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) 0|npm | at internal/main/run_main_module.js:17:47 { 0|npm | code: 'MODULE_NOT_FOUND', 0|npm | requireStack: [] 0|npm | } 0|npm | internal/modules/cjs/loader.js:892 0|npm | throw err; 0|npm | ^ 0|npm | 0|npm | Error: Cannot find module '/home/ubuntu/.npm/_npx/3296/lib/node_modules/pm2/lib/ProcessContainerFork.js' 0|npm | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15) 0|npm | at Function.Module._load (internal/modules/cjs/loader.js:745:27) 0|npm | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) 0|npm | at internal/main/run_main_module.js:17:47 { 0|npm | code: 'MODULE_NOT_FOUND', 0|npm | requireStack: [] 0|npm | } 0|npm | internal/modules/cjs/loader.js:892 0|npm | throw err; 0|npm | ^ 0|npm | 0|npm | Error: Cannot find module '/home/ubuntu/.npm/_npx/3296/lib/node_modules/pm2/lib/ProcessContainerFork.js' 0|npm | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15) 0|npm | at Function.Module._load (internal/modules/cjs/loader.js:745:27) 0|npm | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) 0|npm | at internal/main/run_main_module.js:17:47 { 0|npm | code: 'MODULE_NOT_FOUND', 0|npm | requireStack: [] 0|npm | } 0|npm | internal/modules/cjs/loader.js:892 0|npm | throw err; 0|npm | ^ 0|npm | 0|npm | Error: Cannot find module '/home/ubuntu/.npm/_npx/3296/lib/node_modules/pm2/lib/ProcessContainerFork.js' 0|npm | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15) 0|npm | at Function.Module._load (internal/modules/cjs/loader.js:745:27) 0|npm | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) 0|npm | at internal/main/run_main_module.js:17:47 { 0|npm | code: 'MODULE_NOT_FOUND', 0|npm | requireStack: [] 0|npm | } 0|npm | internal/modules/cjs/loader.js:892 0|npm | throw err; 0|npm | ^ 0|npm | 0|npm | Error: Cannot find module '/home/ubuntu/.npm/_npx/3296/lib/node_modules/pm2/lib/ProcessContainerFork.js' 0|npm | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15) 0|npm | at Function.Module._load (internal/modules/cjs/loader.js:745:27) 0|npm | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) 0|npm | at internal/main/run_main_module.js:17:47 { 0|npm | code: 'MODULE_NOT_FOUND', 0|npm | requireStack: [] 0|npm | }
- 좋아요수
- 0
- 댓글수
- 2
- 조회수
- 493





