npm ERR! Error: No compatible version found: source-map@'>=0.1.7- <0.2.0-'
npm ERR! error installing uglify-js@2.2.5
npm ERR! error installing app@0.1.0
npm ERR! Error: No compatible version found: source-map@'>=0.1.7- <0.2.0-'
npm ERR! Valid install targets:
npm ERR! ["0.0.0","0.1.0","0.1.1","0.1.2","0.1.3"]
npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
npm ERR! at next_ (/usr/share/npm/lib/cache.js:438:17)
npm ERR! at next (/usr/share/npm/lib/cache.js:415:44)
npm ERR! at /usr/share/npm/lib/cache.js:408:5
npm ERR! at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/neulwon/public_html/node_root/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-29-generic
npm ERR! command "node" "/usr/bin/npm" "install" "app"
npm ERR! cwd /home/neulwon/public_html/node_root
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message No compatible version found: source-map@'>=0.1.7- <0.2.0-'
npm ERR! message Valid install targets:
npm ERR! message ["0.0.0","0.1.0","0.1.1","0.1.2","0.1.3"]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/neulwon/public_html/node_root/npm-debug.log
npm not ok
위와같이 버전의 차이로 uglify-js 가 설치되지 않는다면 아래 두가지 방법으로 해결이 가능합니다.
1) node 최신버전 설치
# sudo apt-get update
# sudo apt-get install git-core curl build-essential openssl libssl-dev
# git clone https://github.com/joyent/node.git && cd node
# ./configure
# make
# sudo make install
# node -v
# curl http://npmjs.org/install.sh | sudo sh
# npm -v
[출처] http://www.giantflyingsaucer.com/blog/?p=2775
2. uglify-js 1 버전대로 설치
# npm install uglify-js@1 -g
'리눅스 > APACHE' 카테고리의 다른 글
.htaccess 사용 못하게 하기 (0) | 2015.01.16 |
---|---|
nginx 메모리 사용량 (0) | 2015.01.16 |
없는파일 접근시 404에러가 아니고 403에러가 뜰때 (0) | 2015.01.16 |
특정 디렉토리의 특정 확장자 접근시 접속차단하기.(PHP 실행방지) (0) | 2015.01.16 |
node.js iconv 모듈 에러 (0) | 2015.01.16 |