none
애저에서 nuxt 배포를 하면 node_modules 를 왜 참조하지 못하는건가요? RRS feed

  • 질문

  • npm run start

    스크립트를 실행시키면

    nuxt start 명령어가 실해이 되는데

    왜 모듈을 찾지 못한다고 하는지 모르겠습니다.

    2020-11-26T10:40:16.657471533Z   _____
    2020-11-26T10:40:16.657520234Z   /  _  \ __________ _________   ____
    2020-11-26T10:40:16.657526034Z  /  /_\  \___   /  |  \_  __ \_/ __ \
    2020-11-26T10:40:16.657530134Z /    |    \/    /|  |  /|  | \/\  ___/
    2020-11-26T10:40:16.657534034Z \____|__  /_____ \____/ |__|    \___  >
    2020-11-26T10:40:16.657538135Z         \/      \/                  \/
    2020-11-26T10:40:16.657541935Z A P P   S E R V I C E   O N   L I N U X
    2020-11-26T10:40:16.657545635Z
    2020-11-26T10:40:16.657549035Z Documentation: http://aka.ms/webapp-linux
    2020-11-26T10:40:16.657552535Z NodeJS quickstart: https://aka.ms/node-qs
    2020-11-26T10:40:16.657555935Z NodeJS Version : v12.18.3
    2020-11-26T10:40:16.657559335Z Note: Any data outside '/home' is not persisted
    2020-11-26T10:40:16.657562835Z
    2020-11-26T10:40:18.141783163Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
    2020-11-26T10:40:18.141820464Z Could not find operation ID in manifest. Generating an operation id...
    2020-11-26T10:40:18.141826564Z Build Operation ID: 3fa0b7f2-47e1-492a-b14b-2e0c5d8f736e
    2020-11-26T10:40:20.329317613Z Writing output script to '/opt/startup/startup.sh'
    2020-11-26T10:40:21.176360695Z Running #!/bin/sh
    2020-11-26T10:40:21.177383815Z
    2020-11-26T10:40:21.177398315Z # Enter the source directory to make sure the script runs where the user expects
    2020-11-26T10:40:21.177403315Z cd "/home/site/wwwroot"
    2020-11-26T10:40:21.186474689Z
    2020-11-26T10:40:21.186946498Z export NODE_PATH=/usr/local/lib/node_modules:$NODE_PATH
    2020-11-26T10:40:21.186958699Z if [ -z "$PORT" ]; then
    2020-11-26T10:40:21.186963299Z export PORT=8080
    2020-11-26T10:40:21.186967399Z fi
    2020-11-26T10:40:21.188358626Z
    2020-11-26T10:40:21.188372226Z PATH="$PATH:/home/site/wwwroot" npm -v && npm run start
    2020-11-26T10:40:23.312160050Z 6.14.8
    2020-11-26T10:40:24.222419448Z npm info it worked if it ends with ok
    2020-11-26T10:40:24.223965277Z npm info using npm@6.14.8
    2020-11-26T10:40:24.224990497Z npm info using node@v12.18.3
    2020-11-26T10:40:24.827097171Z npm info lifecycle nuxt-template@~prestart: nuxt-template@
    2020-11-26T10:40:24.836424150Z npm info lifecycle nuxt-template@~start: nuxt-template@
    2020-11-26T10:40:24.838675794Z
    2020-11-26T10:40:24.838690094Z > nuxt-template@ start /home/site/wwwroot
    2020-11-26T10:40:24.838695194Z > cross-env PORT=8080 nuxt start
    2020-11-26T10:40:24.838699094Z
    2020-11-26T10:40:24.944312324Z /home/site/wwwroot/node_modules/.bin/cross-env: 1: /home/site/wwwroot/node_modules/.bin/cross-env: ../cross-env/src/bin/cross-env.js: not found
    2020-11-26T10:40:24.975701928Z npm info lifecycle nuxt-template@~start: Failed to exec start script
    2020-11-26T10:40:25.083942909Z npm ERR! code ELIFECYCLE
    2020-11-26T10:40:25.084919627Z npm ERR! syscall spawn
    2020-11-26T10:40:25.093431791Z npm ERR! file sh
    2020-11-26T10:40:25.093449291Z npm ERR! errno ENOENT
    2020-11-26T10:40:25.111098131Z npm ERR! nuxt-template@ start: `cross-env PORT=8080 nuxt start`
    2020-11-26T10:40:25.112021248Z npm ERR! spawn ENOENT
    2020-11-26T10:40:25.113372374Z npm ERR!
    2020-11-26T10:40:25.114294792Z npm ERR! Failed at the nuxt-template@ start script.
    2020-11-26T10:40:25.114638599Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    2020-11-26T10:40:25.268489157Z npm timing npm Completed in 1192ms
    2020-11-26T10:40:25.268510457Z
    2020-11-26T10:40:25.268515057Z npm ERR! A complete log of this run can be found in:
    2020-11-26T10:40:25.268518757Z npm ERR!     /root/.npm/_logs/2020-11-26T10_40_25_123Z-debug.log


    2020년 11월 26일 목요일 오전 10:42

모든 응답

  • 어떤 Azure 서비스(App Services, Static Web Apps 또는 Azure DevOps)를 사용하고 있는지 더 많은 정보를 공유해 주실수 있을가요?

    MSDN Community Support Ricky

    다른 커뮤니티 멤버에게 도움이 될 수 있게 문제를 해결 한 답변을 '답변으로 표시'를 클릭하시고 그렇지 않은 경우 '답변으로 표시 취소'를 클릭하시기 바랍니다. MSDN 서포트에 대한 의견이나 불만이 있을 경우 MSDNFSF@microsoft.com 으로 연락하시기 바랍니다.

    2020년 11월 30일 월요일 오전 7:41
    중재자