Skip to content

Instantly share code, notes, and snippets.

echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh
0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli 'grunt-karma',
1 verbose cli 'karma-ng-html2js-preprocessor',
1 verbose cli 'karma-ng-scenario',
1 verbose cli '--save-dev' ]
2 info using npm@1.4.2
3 info using node@v0.10.25
create app/fonts/glyphicons-halflings-regular.eot
create app/fonts/glyphicons-halflings-regular.ttf
create app/fonts/glyphicons-halflings-regular.svg
create app/fonts/glyphicons-halflings-regular.woff
create app/styles/main.css
create app/index.html
create bower.json
create package.json
create Gruntfile.js
create app/images/yeoman.png
_-----_
| |
|--(o)--| .--------------------------.
`---------´ | Welcome to Yeoman, |
( _´U`_ ) | ladies and gentlemen! |
/___A___\ '__________________________'
| ~ |
__'.___.'__
´ ` |° ´ Y `
// Generated on 2014-02-18 using generator-angular 0.7.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
# install node wherever.
# use sudo even, it doesn't matter
# we're telling npm to install in a different place.
#for youtube_12
echo prefix = ~/local >> ~/.npmrc
# curl https://npmjs.org/install.sh | sh
# use this below instead to avoid install.sh newline error
curl -O https://www.npmjs.org/install.sh
some background for [my stackoverflow question on enoent err](http://stackoverflow.com/q/21964874/3290121)
below are all the essential commands that I ran on a brand new Ubuntu Server 12.04.3, so you can see exactly what led up to the ENOENT ERR, and where I have installed various packages.
#
echo prefix = ~/local >> ~/.npmrc
mkdir local
curl -O https://www.npmjs.org/install.sh
below are all the essential commands that I ran on a brand new Ubuntu Server 12.04.3, so you can see exactly what led up to the ENOENT ERR, and where I have installed various packages.
#
echo prefix = ~/local >> ~/.npmrc
mkdir local
curl -O https://www.npmjs.org/install.sh
sudo sh install.sh
from stderr.log:
npm http 304 https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/graceful-fs
@randwa1k
randwa1k / gist:9210472
Created February 25, 2014 15:00
2014-02-25 ENOENT 3
npm http 200 https://registry.npmjs.org/connect/-/connect-2.7.11.tgz
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/lodash
npm http 200 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/debug/-/debug-0.7.4.tgz
npm http GET https://registry.npmjs.org/lodash/-/lodash-1.0.1.tgz
npm http GET https://registry.npmjs.org/jshint
npm http 200 https://registry.npmjs.org/debug/-/debug-0.7.4.tgz
npm http 200 https://registry.npmjs.org/lodash/-/lodash-1.0.1.tgz