Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new installation requieres install -g and still can't start #127

Closed
vkuehn opened this issue Feb 2, 2017 · 7 comments
Closed

new installation requieres install -g and still can't start #127

vkuehn opened this issue Feb 2, 2017 · 7 comments

Comments

@vkuehn
Copy link
Contributor

vkuehn commented Feb 2, 2017

when installing with sudo npm iron-node -g on a ubtuntu 14.04 x64 starting iron-node causes

fs.js:640
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^

Error: EACCES: permission denied, open '/usr/lib/node_modules/iron-node/bin/iron-node.env.json'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.writeFileSync (fs.js:1333:33)
at /usr/lib/node_modules/iron-node/bin/run.js:41:5
at onStdIn (/usr/lib/node_modules/iron-node/bin/run.js:17:3)
at Object. (/usr/lib/node_modules/iron-node/bin/run.js:33:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)

the file actually didn't exist and creating it with chmod 755 didn't brin a solution...any idea ?

@s-a
Copy link
Owner

s-a commented Feb 2, 2017 via email

@s-a
Copy link
Owner

s-a commented Feb 2, 2017

Well I simply use ( without sudo ) npm i -g iron-node on Ubuntu .

@vkuehn
Copy link
Contributor Author

vkuehn commented Feb 8, 2017

on ubuntu you don't have write access to /usr/lib/node_modules.... so -g won't work unless you have made a manual configuration to use a different folder for node-modules.Therefore I see again
npm ERR! Please try running this command again as root/Administrator.
So I have to use iron-node always with root rights

@s-a
Copy link
Owner

s-a commented Feb 15, 2017

We should change the location of iron-node.env.json to temporary folder of operating system. Can you send a PR?

@vkuehn
Copy link
Contributor Author

vkuehn commented Feb 15, 2017

uuuh not sure if I am the right person to do here PR's....I'll look at the weekend for that

@s-a s-a closed this as completed in 161005c Feb 19, 2017
@s-a
Copy link
Owner

s-a commented Feb 19, 2017

Great. You are the right person to do PRs. Just deployed https://github.com/s-a/iron-node/releases/tag/v3.0.18. vkuehn.haveNiceWeekend(). 😄

@vkuehn
Copy link
Contributor Author

vkuehn commented Feb 20, 2017

thanks hopefully it was the right approach....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants