npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances,which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! code 1
npm ERR! path /home/.../node_modules/java
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@12.22.5 | linux | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/share/nodejs/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
에러는 위와 같았다.
찾아보아도 다 영어글뿐 삭제 후 다시 깔아보아도 소용이 없었다.
java가 없다고 해서 java를 설치해도 똑같은 code 1 에러가 떴다.
찾다찾다 jdk가 없어서 그런거라는 글 확인 후
sudo apt update
sudo apt install default-jdk
java -version
아래 포스팅 참고하여 jdk 설치하니 node-jt400 설치가 되었다.
맨 땅에 헤딩하는 개발자라 아무것도 몰라서 일단 하라는건 다 해보면 배우는 중
node랑 npm 은 -v 하면 버전 확인이 가능하나
java는 java -v 하면 안되고 java -version 으로 입력해야 설치 확인 가능하다.
java -version 입력하면 아래와 같이 뜬다.
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment (build 11.0.13+8-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.13+8-post-Debian-1deb11u1, mixed mode, sharing)
참조:
'linux > nodejs' 카테고리의 다른 글
fs.createWriteStream 파일 생성이 되지 않는 이유 (0) | 2021.12.24 |
---|