Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Node.js on fox board g20 #4779

Closed
ImaneZ opened this Issue · 2 comments

4 participants

@ImaneZ

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

@othiym23 othiym23 added the support label
@smikes

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
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.