sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
Source: Installing Node.js on Ubuntu...
sudo apt-get install -y python-software-properties python g++ make
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version.
g++ set to manually installed.
make is already the newest version.
python is already the newest version.
The following NEW packages will be installed:
python-software-properties
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 19.3 kB of archives.
After this operation, 132 kB of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu/ raring-security/universe python-software-properties all 0.92.17.3 [19.3 kB]
Fetched 19.3 kB in 0s (28.0 kB/s)
Selecting previously unselected package python-software-properties.
(Reading database ... 198914 files and directories currently installed.)
Unpacking python-software-properties (from .../python-software-properties_0.92.17.3_all.deb) ...
Setting up python-software-properties (0.92.17.3) ...
sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libc-ares2 libev4 libv8-3.8.9.20
The following NEW packages will be installed:
libc-ares2 libev4 libv8-3.8.9.20 nodejs
0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded.
Need to get 2,213 kB of archives.
After this operation, 6,526 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libc-ares2 libv8-3.8.9.20 libev4 nodejs
Install these packages without verification [y/N]? n
E: Some packages could not be authenticated
http://askubuntu.com/questions/83472/i-cannot-solve-the-install-these-packages-without-verification-problem
http://askubuntu.com/questions/75565/why-am-i-getting-authentication-errors-for-packages-from-an-ubuntu-repository
sudo apt-key update
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012)
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012)
gpg: Total number processed: 4
gpg: unchanged: 4
94% [Connecting to mirrors.liquidweb.com (69.167.187.144)]
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
W: Unable to read /etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
i tried this and get an error
http://getkickstrap.com/docs.html#/first-steps
https://www.npmjs.org/doc/README.html
for a newbie. How the F** do i run insall.sh when linux wants to open it in gedit
so after googling i tried at the terminal
sh install.sh
npm cannot be installed without nodejs.
Install node first, and then try again.
Maybe node is installed, but not in the PATH?
Note that running as sudo can change envs.
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
??? wft
then i found this
sudo apt-get install nodejs npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
javascript-common libc-ares-dev libc-ares2 libev-dev libev4 libjs-node-uuid
libssl-dev libssl-doc libv8-3.8.9.20 libv8-dev node-abbrev node-block-stream
node-fstream node-graceful-fs node-inherits node-ini node-lru-cache
node-minimatch node-mkdirp node-node-uuid node-nopt node-request node-rimraf
node-semver node-tar node-which nodejs-dev wwwconfig-common zlib1g-dev
Suggested packages:
apache2 httpd mysql-client postgresql-client
The following NEW packages will be installed:
javascript-common libc-ares-dev libc-ares2 libev-dev libev4 libjs-node-uuid
libssl-dev libssl-doc libv8-3.8.9.20 libv8-dev node-abbrev node-block-stream
node-fstream node-graceful-fs node-inherits node-ini node-lru-cache
node-minimatch node-mkdirp node-node-uuid node-nopt node-request node-rimraf
node-semver node-tar node-which nodejs nodejs-dev npm wwwconfig-common
zlib1g-dev
0 upgraded, 31 newly installed, 0 to remove and 5 not upgraded.
Need to get 5,954 kB of archives.
After this operation, 18.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libc-ares2 wwwconfig-common javascript-common libjs-node-uuid zlib1g-dev
libv8-3.8.9.20 libev4 nodejs node-node-uuid libc-ares-dev libev-dev
libv8-dev node-abbrev node-inherits node-block-stream node-rimraf
node-mkdirp node-graceful-fs node-fstream node-ini node-lru-cache
node-minimatch node-nopt node-request node-semver node-tar node-which
nodejs-dev npm
Install these packages without verification [y/N]? y
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?