auxilio icon indicating copy to clipboard operation
auxilio copied to clipboard

nvm + node - after install receive "node\r no such file or directory"

Open TexRx opened this issue 12 years ago • 7 comments

MacOS Mountain Lion Node 0.10.8 installed via nvm Current console nvm node environment is 0.10.8

npm install -g auxilio-backend [no errors during install] npm list -g [I see auxilio-backend in the list]

After installation:

auxilio-backend [expect to see the initialization statements per your post. Instead, I get "env: node\r: No such file or directory"

Any ideas why this is happening? I also tried installing it without the -g flag, but because I'm using nvm to manage node, installing without the -g flag means I cannot access any installed package from the CLI.

TexRx avatar Sep 21 '13 06:09 TexRx

Hm ... that's really strange. Is it happening with other modules installed globally?

krasimir avatar Sep 21 '13 11:09 krasimir

Nope - I have tons of globally installed modules and they all work fine....Grunt, serve, casper, phantom, etc.

TexRx avatar Sep 22 '13 21:09 TexRx

Hi, I think that your problem is identical to this one https://github.com/surjikal/sublime-coffee-compile/issues/9 (I can't really test it because I'm a Linux/Windows user and don't have a Mac). Can you please read this tread https://github.com/surjikal/sublime-coffee-compile/issues/9 and try changing your PATH. I'm referring this comment https://github.com/surjikal/sublime-coffee-compile/issues/9#issuecomment-9160312

krasimir avatar Sep 23 '13 06:09 krasimir

Hi, is the problem fixed. I too had the same error. I am working on ubuntu 13.04, node version 0.10.23. I think the problem is with setting the env to node. I could not fix the problem completely. One workaround is to execute the index.js auxilio is pointing to with node. In my case, it is

node /usr/local/lib/node_modules/auxilio-backend/index.js

vharish avatar Dec 14 '13 06:12 vharish

Because @askesian didn't post again here I was thinking that he found the problem. Personally I can't reproduce the problem. It seems that this problem is somehow related to the global PATH variable. The best thing which I could suggest for now is to make an alias which points to /usr/local/lib/node_modules/auxilio-backend/index.js.

krasimir avatar Dec 14 '13 06:12 krasimir

Have the same problem. VenkataHarish's solution worked for me

serapath avatar Apr 02 '14 20:04 serapath

I'm glad that @VenkataHarish's answer helped someone.

krasimir avatar Apr 02 '14 20:04 krasimir