• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

프론트엔드에 pm2 설치 후 배포시 에러

20.01.24 14:12 작성 조회수 259

0

                         Asset       Size   Chunks                                Chunk Names
../server/client.manifest.json     20 KiB           [emitted]
      0817e97d2ab6d875667b.css   5.96 KiB        1  [emitted] [immutable]         vendors.pages/hashtag/_id/index.pages/index.pages/post/_id/index.pages/user/_id/index
       1d9e24029b0ed22b7d35.js    170 KiB       11  [emitted] [immutable]         vendors.app
       22a81dec205a130e1a29.js     57 KiB        2  [emitted] [immutable]         app
      43d0e13dc8fa836e29e8.css    298 KiB       11  [emitted] [immutable]  [big]  vendors.app
       44f7a0bec3436e27b197.js     18 KiB        0  [emitted] [immutable]         vendors.pages/hashtag/_id/index.pages/index.pages/post/_id/index.pages/profile.pages/user/_id/index
       4ec1ad9bc60a36e13a4a.js   10.7 KiB        4  [emitted] [immutable]         pages/hashtag/_id/index
      5167c334427c8fcbbd94.css   1.17 KiB        2  [emitted] [immutable]         app
       59f75d985b76432b3cd3.js   4.15 KiB        7  [emitted] [immutable]         pages/profile
       6ff8b63eb8ff7016d497.js   9.15 KiB        8  [emitted] [immutable]         pages/signup
      840631b74903ce4d53b0.css   15.5 KiB        0  [emitted] [immutable]         vendors.pages/hashtag/_id/index.pages/index.pages/post/_id/index.pages/profile.pages/user/_id/index
      856def534aff94f4d327.css   3.45 KiB        8  [emitted] [immutable]         pages/signup
       92884176131a7b5ec567.js   10.7 KiB        6  [emitted] [immutable]         pages/post/_id/index
       99d17a0eda7f415cfb38.js    184 KiB        3  [emitted] [immutable]         commons.app
                      LICENSES  450 bytes           [emitted]
      c8fc11877db27c56ed53.css  638 bytes  4, 6, 9  [emitted] [immutable]         pages/hashtag/_id/index, pages/post/_id/index, pages/user/_id/index
      d029fafdb9b8b637a9ee.css   9.25 KiB        5  [emitted] [immutable]         pages/index
       e0313d1fb9ba10e912b6.js    3.5 KiB       10  [emitted] [immutable]         runtime
       e66cb99312216d2764ce.js   19.8 KiB        5  [emitted] [immutable]         pages/index
       efc4033aeefbd33635aa.js   11.4 KiB        9  [emitted] [immutable]         pages/user/_id/index
       fd133dd0d0011d9cd14c.js     38 KiB        1  [emitted] [immutable]         vendors.pages/hashtag/_id/index.pages/index.pages/post/_id/index.pages/user/_id/index
 + 2 hidden assets
Entrypoint app = e0313d1fb9ba10e912b6.js 99d17a0eda7f415cfb38.js 43d0e13dc8fa836e29e8.css 1d9e24029b0ed22b7d35.js 5167c334427c8fcbbd94.css 22a81dec205a130e1a29.js

WARNING in chunk vendors.pages/hashtag/_id/index.pages/index.pages/post/_id/index.pages/profile.pages/user/_id/index 
[extract-css-chunks-webpack-plugin]
Conflicting order between:
 * css ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./node_modules/vuetify/src/components/VList/VList.sass        
 * css ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./node_modules/vuetify/src/components/VItemGroup/VItemGroup.sass

WARNING in chunk vendors.pages/hashtag/_id/index.pages/index.pages/post/_id/index.pages/profile.pages/user/_id/index 
[extract-css-chunks-webpack-plugin]
Conflicting order between:
 * css ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./node_modules/vuetify/src/components/VList/VListItem.sass    
 * css ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./node_modules/vuetify/src/components/VItemGroup/VItemGroup.sass

WARNING in chunk vendors.pages/hashtag/_id/index.pages/index.pages/post/_id/index.pages/profile.pages/user/_id/index 
[extract-css-chunks-webpack-plugin]
Conflicting order between:
 * css ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./node_modules/vuetify/src/components/VAvatar/VAvatar.sass    
 * css ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./node_modules/vuetify/src/components/VItemGroup/VItemGroup.sass

WARNING in chunk vendors.pages/hashtag/_id/index.pages/index.pages/post/_id/index.pages/profile.pages/user/_id/index 
[extract-css-chunks-webpack-plugin]
Conflicting order between:
 * css ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./node_modules/vuetify/src/components/VList/VListGroup.sass   
 * css ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./node_modules/vuetify/src/components/VItemGroup/VItemGroup.sass

WARNING in chunk vendors.pages/hashtag/_id/index.pages/index.pages/post/_id/index.pages/profile.pages/user/_id/index 
[extract-css-chunks-webpack-plugin]
Conflicting order between:
 * css ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./node_modules/vuetify/src/components/VList/VListItemGroup.sass
 * css ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-1-3!./node_modules/vuetify/src/components/VItemGroup/VItemGroup.sass

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  43d0e13dc8fa836e29e8.css (298 KiB)

Hash: 5443d611dde775b1d684
Version: webpack 4.41.5
Time: 32526ms
Built at: 01/24/2020 5:06:57 AM
                  Asset       Size  Chunks                         Chunk Names
2df6e4c3d4f56668a4ad.js     62 KiB       2  [emitted] [immutable]  pages/index
80fe0f56e710f573f2cf.js   15.8 KiB       4  [emitted] [immutable]  pages/profile
89dbd60b37836cf539ee.js   7.34 KiB       5  [emitted] [immutable]  pages/signup
8a4a6fe05250c3600fcb.js   55.7 KiB       6  [emitted] [immutable]  pages/user/_id/index
cfbe446713f0473106f9.js     55 KiB       1  [emitted] [immutable]  pages/hashtag/_id/index
e7ba37c492da17f18d7f.js   55.1 KiB       3  [emitted] [immutable]  pages/post/_id/index
              server.js    127 KiB       0  [emitted]              app
   server.manifest.json  843 bytes          [emitted]
 + 7 hidden assets
Entrypoint app = server.js server.js.map

> vuerd-front@1.0.0 start /home/ubuntu/NodeBird/ch6/front
> cross-env PORT=80 NODE_ENV=production pm2 start server

[PM2][ERROR] Script not found: /home/ubuntu/NodeBird/ch6/front/server
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vuerd-front@1.0.0 start: `cross-env PORT=80 NODE_ENV=production pm2 start server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vuerd-front@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/2020-01-24T05_06_59_197Z-debug.log

pm2 를 설치하고 package.json 에서 start, prestart 부분을 수정, 생성하고 했는데 에러가 나옵니다.

pm2 안 하고 배포하면 실행이 됩니다.

답변 3

·

답변을 작성해보세요.

1

네네 거기서 찾았습니다.

1

pm2 start server.js로 확장자 붙여주세요

0

꼬부기님의 프로필

꼬부기

질문자

2020.01.25

감사합니다! 실행이 잘 됩니다.!

그리고 혹시 Script not found: /home/ubuntu/NodeBird/ch6/front/server

이 부분에서 찾으신 거 맞나요?