Programming/node.js2 babel / nodemon 1. babel 이란? js es6 최신문법을 사용해도 예전 문법으로 바꿔주는 역할을 한다. 1.1 babel 설치 npm install @babel/node npm install @babel/preset-env npm install @babel/core 1.2 .babelrc 파일 생성, index.js 및 package.json 수정 - .babelrc 파일 생성 후 내용 추가 { "presets": ["@babel/preset-env"] } - index.js 수정 // const express = require('express'); import express from "express"; - package.json 수정 "scripts": { "start": "babel-node index.js" .. 2021. 4. 13. 이클립스 Node.js 연동하기 (Eclipse Node.js) 지난번 Node.js를 설치하였고 이번엔 이클립스에 Node.js를 연동하여 개발 환경을 구축해 보도록 하겠습니다.이클립스에 Node.js플러그인만 설치하면 됩니다. 간단하니 쉽게 따라하실 수 있을겁니다.1.이클립스의 Help 의 Install New Software...을 클릭합니다.2. add를 누르고 http://www.nodeclipse.org/updates/ 이 URL을 입력합니다.. 그러면 아래 화면과 같이 Nodeclipse라는 리스트가 보이게 됩니다.3. 체크박스에 체크후 Next를 누릅니다.4. 아래와 같은 창이뜨면 동의를 누르고Finish를 누릅니다.5. 플러그인 설치가 시작됩니다.6.설치가 끝나면 이클립스를 재실행합니다.7. 재실행을 하면 다음과 같이 Node Project와 Node.. 2013. 3. 29. 이전 1 다음