강의

멘토링

커뮤니티

Inflearn Community Q&A

bahang122821's profile image
bahang122821

asked

[Renewal] Creating NodeBird SNS with React

Deploying the Front Server

spawn set ENOENT 에러 관련 질문입니다 !

Written on

·

883

0

제로초님 안녕하세요 ~

front서버에서 클론, npm install, .env 작성 이후 

sudo npm start를 하면 아래와 같이 오류가 발생하는데

이게 혹시 next.js가 아니라 react.js로 작성한 app이라서 발생한 오류인가요 ?

구글링을 해보면 system 변수 관련 오류라고 하는데

linux환경에서 어떻게 해결해야할지 몰라 질문드립니다.

cross-env도 설치는 완료했습니다. 

 

expressnodejsreactreduxNext.js

Answer 1

0

zerocho님의 프로필 이미지
zerocho
Instructor

sudo NODE_ENV=production PORT=80 react-scripts start

만 하면됩니다.

set은 윈도우입니다. &&은 두 명령어 쓸때 쓰는 건데 이건 명령어 하납니다.

bahang122821's profile image
bahang122821

asked

Ask a question