본문 바로가기

nodejs4

시놀로지 https SSL 서버 설정하기(NodeJS 서버도 가능) 뭐 Docker로 한다는 이야기도 있지만 내가 개발한 NextJS 앱은 작동이 안됨. 그래서 혹시나 해서 그냥 아무 폴더를 만들고 거기서 내 소스를 올리고 내 로컬 PC와 똑같이 npm run dev 하면 3000 포트가 열리게 되는데 그럼 내부망 http://192.168.0.X:3000 접속하고 잘 열리는것을 확인 후 시놀로지->제어판->응용 프로그램->응용 프로그램 포털->역방향 프록시 X.synology.me는 자신의 내용으로 수정 해주세요 그리고 https://X.synology.me 로 접속 하시면 https가 잘 적용된 사이트 화면이 나올꺼임 참고로 이렇게 설정하면 기존 Web Station 동작이 역방향 프록시로 교체 됨 2023. 4. 24.
Amazon EC2 nodejs mysql 설치 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash . ~/.nvm/nvm.sh nvm --version nvm install node node --version node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by node) 위와 같은 에러 발생시 node 버전 다운 nvm ls-remote nvm install 16.19.1 node --version nvm ls ln -s /root/.nvm/versions/no.. 2023. 3. 10.
centos nodejs8 버전 설치 $ yum install -y gcc-c++ make #의존성 패키지 설치 $ curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash - # nodejs 최신버전 저장소 설치 $ curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash $ yum install nodejs -y $ npm install yarn -g $ npm install pm2 -g 후에 nodeapp 설치는 node_modules 디렉토리를 제외하고 복사 $ npm init 엔터~~ $ npm install​ $ pm2 start server.js --watch 2020. 4. 14.
gyp ERR! stack Error: Command failed python.EXE npm install 시에 위 에러가 난다면 Python 2.7 버전 64bit 설치 후 npm config set python "파이썬 2.7 경로\python.exe" 하고 npm install 하면 됨 gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "C:\Users\\AppData\Local\Programs\Python\Python37-32\python.EXE", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\\node_modules\node-gyp\lib\configure.js:483:19) gyp ERR.. 2019. 10. 25.