https://nodejs.org/download/release/v10.24.1/

 

Index of /download/release/v10.24.1/

 

nodejs.org

 

NodeJs 버전은 10.x.x 사용

node-gyp 은 6.1.0 사용

~]# npm install -g node-gyp@6.1.0

끝!!!

 

Posted by 비니미니파
Raspberry Pi2022. 12. 20. 10:09

 table header 를 html thead tr 사용 하지 않고 정의 하기

<table id="example" class="display" style="width:100%">
    <thead>
    </thead>
</table>

 

<script>

$('#example').DataTable( {
  columns: [
	{"data":"mdate","title":"날짜"},
	{"data":"username","title":"이름"},
	{"data":"tel","title":"연락처"}
  ]
} );

</script>
 

 

Posted by 비니미니파

npm 으로 원하는 버전 설치하기 중요 

node-gyp 을 원하는 버전 6.1.0으로 설치하고자 할때는

node-gyp@version 형식으로 설치 하면 된다. 

~]# npm install -g node-gyp@6.1.0

버전 확인

~]# node-gyp -v
v6.1.0
Posted by 비니미니파

Nodejs 홈페이지에서 원하는 릴리즈를 찾아서 다운받으면된다.

https://nodejs.org/ko/download/releases/

 

이전 릴리스 | Node.js

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

다운 받은 nodejs 를 원하는 폴더에 압축을 풀고

예) /usr/local/node/

path 를 추가 하자.

~]# export PATH=$PATH:/usr/local/node/bin/

시스템에 등록하고 싶을 때는

~/.bash_profie 에 스크립트를 추가하면 된다. ( ~ 리눅스에서 사용자 홈디렉토리 이다.)

마지막줄에 추가

~]# vi ~/.bash_profie

-- 마지막 줄에 추가 --
export PATH=$PATH:/usr/local/node/bin/

node 명령어를 실행해 보면 잘된다.

*** npm 으로 원하는 버전 설치하기 중요 ***

node-gyp 을 원하는 버전으로 설치하고자 할때는 @버전 형식으로 설치 하면 된다. 

~]# npm install -g node-gyp@6.1.0

 

끝!!!

Posted by 비니미니파