You can clone with
HTTPS or Subversion.
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 <firstname.lastname@example.org>
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
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!)
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!