Node.js on fox board g20 #4779

Closed
ImaneZ opened this Issue Feb 25, 2014 · 2 comments

Comments

Projects
None yet
4 participants
@ImaneZ

ImaneZ commented Feb 25, 2014

Hi,

My problem is that I was hardly trying to install nodejs on my fox board g20, I tried this method http://www.acmesystems.it/nodejs, but it couldn't work, so I tried this one http://www.acmesystems.it/nodejs_installing and it worked, but the nodejs version is too old that it can't even be upgraded. When I type this command "sudo npm install -g n" I get as the following message:

npm ERR! sudon't! 
npm ERR! sudon't! Running npm as root is not recommended!
npm ERR! sudon't! Seriously, don't do this!
npm ERR! sudon't!
npm ERR! couldn't read package.json in .
npm ERR! Error installing .
npm ERR! Error: ENOENT, No such file or directory 'package.json'
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm ERR! or email it to <npm-@googlegroups.com>
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm not ok

So my problem is that the package.json file can't be found. How can I solve this problem so that I can upgrade my nodejs. It's urgent. Thanks

@smikes

This comment has been minimized.

Show comment Hide comment
@smikes

smikes Dec 4, 2014

Contributor

Is this still a problem for you?

For some Linux distributions (Debian/Ubuntu and RedHat/CentOS), the latest node version provided by the distribution may lag behind the stable version. Here are instructions from NodeSource on getting the latest node.

We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and open a new issue!)

Thanks!

Contributor

smikes commented Dec 4, 2014

Is this still a problem for you?

For some Linux distributions (Debian/Ubuntu and RedHat/CentOS), the latest node version provided by the distribution may lag behind the stable version. Here are instructions from NodeSource on getting the latest node.

We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and open a new issue!)

Thanks!

@othiym23

This comment has been minimized.

Show comment Hide comment
@othiym23

othiym23 Dec 18, 2014

Contributor

Closing as abandoned – it looks like npm didn't want you running as root, but more importantly, it looks like you were trying to run a command that required a package.json file without one being in the current directory. If you come back to this, take another look at the instructions you were following and see if they included a sample package.json for you to copy for a test app. Good luck!

Contributor

othiym23 commented Dec 18, 2014

Closing as abandoned – it looks like npm didn't want you running as root, but more importantly, it looks like you were trying to run a command that required a package.json file without one being in the current directory. If you come back to this, take another look at the instructions you were following and see if they included a sample package.json for you to copy for a test app. Good luck!

@othiym23 othiym23 closed this Dec 18, 2014

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