페이지

2013년 3월 16일 토요일

jamjs , Error: TypeError: Arguments to path.resolve must be strings


Mac 에서 jamjs를 써보려다 발생한 에러입니다.


$ jam install jquery
Error: TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:313:15)
    at Object.exports.extendOptions (/usr/local/lib/node_modules/jamjs/lib/commands/install.js:133:32)
    at /usr/local/lib/node_modules/jamjs/lib/commands/install.js:97:23
    at /usr/local/lib/node_modules/jamjs/lib/commands/install.js:301:13
    at /usr/local/lib/node_modules/jamjs/node_modules/async/lib/async.js:677:28
    at /usr/local/lib/node_modules/jamjs/lib/project.js:74:20
    at /usr/local/lib/node_modules/jamjs/lib/project.js:47:20
    at Object.cb [as oncomplete] (fs.js:154:19)
Failed

jamjs 설치과정에서 경고가 하나 있었습니다.


$ sudo npm install -g jamjs
Password:
npm http GET https://registry.npmjs.org/jamjs
npm http 304 https://registry.npmjs.org/jamjs
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/inherits
...
npm http 304 https://registry.npmjs.org/requirejs/2.1.4
npm http 304 https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/fstream-ignore
npm WARN engine tar@0.1.16: wanted: {"node":"~0.5.9 || 0.6 || 0.7 || 0.8"} (current: {"node":"v0.10.0","npm":"1.2.14"})
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
...
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/cycle
/usr/local/bin/jam -> /usr/local/lib/node_modules/jamjs/bin/jam.js
jamjs@0.2.15 /usr/local/lib/node_modules/jamjs
├── inherits@1.0.0
├── semver@1.0.14
├── almond@0.2.5
├── fstream-ignore@0.0.6
├── ncp@0.2.7
├── async@0.1.22
├── mime@1.2.9
├── mkdirp@0.3.5
├── request@2.9.203
├── underscore@1.3.3
├── requirejs@2.1.4
├── rimraf@2.0.3 (graceful-fs@1.1.14)
├── minimatch@0.2.11 (sigmund@1.0.0, lru-cache@2.2.2)
├── fstream@0.1.22 (graceful-fs@1.2.0)
├── tar@0.1.16 (block-stream@0.0.6)
└── prompt@0.2.1 (colors@0.6.0-1, revalidator@0.1.5, pkginfo@0.3.0, utile@0.1.7, winston@0.6.2)

nodejs의 버전을 다운그레이드 하여 해결하였습니다.

node-v0.10.0 -> node-v0.8.17

따로 node-v0.10.0 을 지우거나 하지 않고 node-v0.8.17 을 설치하였는데 이상없이 잘 되는것 같습니다.


$ jam install jquery
installing from repositories jquery
Building version tree...
repositories checking "jquery"
downloading http://jamjs.org/repository/jquery/jquery-1.9.1.tar.gz
extracting /Users/vezi/.jam/cache/jquery/1.9.1/jquery-1.9.1.tar.gz
installing jquery@1.9.1
updating jam/require.config.js
updating jam/require.js
OK

댓글 없음:

댓글 쓰기