"jam install jquery" failing on Windows runnning Node v0.10.0 (seems to be happening with other node libraries too) #136

Closed
juliansantaana opened this Issue Mar 21, 2013 · 10 comments

Comments

Projects
None yet
8 participants

I just installed Node v.0.10.0 on Windows 7, i npm -g install jamjs and then i tried using jam install jquery and it threw the following error:

Error: TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:116:15)
    at Object.exports.extendOptions (C:\Users\jsantaana\AppData\Roaming\npm\node
_modules\jamjs\lib\commands\install.js:133:32)
    at C:\Users\jsantaana\AppData\Roaming\npm\node_modules\jamjs\lib\commands\in
stall.js:97:23
    at C:\Users\jsantaana\AppData\Roaming\npm\node_modules\jamjs\lib\commands\in
stall.js:301:13
    at C:\Users\jsantaana\AppData\Roaming\npm\node_modules\jamjs\node_modules\as
ync\lib\async.js:677:28
    at C:\Users\jsantaana\AppData\Roaming\npm\node_modules\jamjs\lib\project.js:
25:16
    at C:\Users\jsantaana\AppData\Roaming\npm\node_modules\jamjs\lib\utils.js:81
:9
    at fs.js:252:14
    at C:\Users\jsantaana\AppData\Roaming\npm\node_modules\jamjs\node_modules\ri
mraf\node_modules\graceful-fs\graceful-fs.js:90:5
    at Object.oncomplete (fs.js:93:15)
Failed

This seems to be affecting several node.js packages, and it seems to be exclusively related to v0.10.0

I installed node v0.9.9 and its working as expected, so indeed i confirm its only an issue when working with node v0.10.0

This is happening for me too. Not quite sure why

lyxsus commented Mar 26, 2013

I have same problem on v.0.10.0 and v.0.10.1 on osx, same on linux.

Same here on Ubuntu 12.10 .

➤➤ node -v
v0.10.1
➤➤ 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/lib/node_modules/jamjs/lib/commands/install.js:133:32)
    at /usr/lib/node_modules/jamjs/lib/commands/install.js:97:23
    at /usr/lib/node_modules/jamjs/lib/commands/install.js:301:13
    at /usr/lib/node_modules/jamjs/node_modules/async/lib/async.js:677:28
    at /usr/lib/node_modules/jamjs/lib/project.js:74:20
    at /usr/lib/node_modules/jamjs/lib/project.js:47:20
    at Object.cb [as oncomplete] (fs.js:168:19)
Failed

I guess we'll have to stick to v0.9.9 until this gets solved.

  • OS X 10.8.2
  • Node v0.10.0
➜  jamjs  jam install backbone
Error: TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:313:15)
    at Object.exports.extendOptions (/usr/local/share/npm/lib/node_modules/jamjs/lib/commands/install.js:133:32)
    at /usr/local/share/npm/lib/node_modules/jamjs/lib/commands/install.js:97:23
    at /usr/local/share/npm/lib/node_modules/jamjs/lib/commands/install.js:301:13
    at /usr/local/share/npm/lib/node_modules/jamjs/node_modules/async/lib/async.js:677:28
    at /usr/local/share/npm/lib/node_modules/jamjs/lib/project.js:74:20
    at /usr/local/share/npm/lib/node_modules/jamjs/lib/project.js:47:20
    at Object.cb [as oncomplete] (fs.js:154:19)
Failed
Contributor

clexit commented Mar 29, 2013

jamjs/lib/commands/install.js:133

settings.baseUrl is undefined, that's why path throws the error. Something like settings.baseUrl || '' does the trick.

Contributor

lachenmayer commented Apr 4, 2013

Opened pull request #137 to fix this.

bleadof commented Apr 5, 2013

👍

Great! this has been resolved :) im closing this now.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment