티스토리 뷰
환경준비
npm list -g babel
에서 리스트 뜨면 upgrade 만 실행,
리스트 안뜨면 설치
npm install -g babel
npm list -g babel-node
에서 리스트 뜨면 upgrade 만 실행,
리스트 안뜨면 설치
npm install -g babel-node
실행
babel-node app.js
Error: Cannot find module ... 발생시
import 문의 경로 확인
본인의 경우엔 따라하기에 나온대로
import * as math from "lib/math";
로 했더니 위 오류 발생하여
import * as math from "./lib/math";
로 경로부분 수정했더니 오류 발생하지 않음.
ReferenceError: alert is not defined 오류 발생시
커맨드라인 환경에서는 alert 없으니
console 사용해야 함.
'웹프로그래밍 > js' 카테고리의 다른 글
EMQ (Mqtt broker)에 웹소켓 접속 실시간 차트 연습 (0) | 2019.02.13 |
---|---|
ES6 IIFE (0) | 2016.09.01 |
javascript로 이동 경로 삽입 추가 (0) | 2015.07.30 |
다른 도메인 간 iframe 크기 조절 (Cross-domain iframe resizing) (0) | 2015.04.22 |
jQuery $ 가 정의되지 않았습니다 오류 (undefined error) (0) | 2014.08.24 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Docker
- mssql
- classic asp
- macos
- git
- nodejs
- Android
- nginx
- Debug
- laravel
- Linux
- IOS
- iis
- 안드로이드
- IE
- CSS
- 한글
- iphone
- JSON
- Wordpress
- JQuery
- Prototype
- Mac
- centos
- API
- sencha touch
- javascript
- ASP
- PHP
- 워드프레스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
글 보관함