Skip to content

Instantly share code, notes, and snippets.

View node-and-npm-in-30-seconds.sh
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
View node-and-npm-in-30-seconds.sh
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 # this steps takes many minutes
# curl https://npmjs.org/install.sh | sh
# use this below instead to avoid install.sh newline error
View `yo angular` npm-debug.log
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
View `yo angular` stderr.log
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
View `yo angular` stdout.log
_-----_
| |
|--(o)--| .--------------------------.
`---------´ | Welcome to Yeoman, |
( _´U`_ ) | ladies and gentlemen! |
/___A___\ '__________________________'
| ~ |
__'.___.'__
´ ` |° ´ Y `
View 2014-02-19 Gruntfile.js
// 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) {
View yet-another-option.sh
# 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
View 2014-02-23 new machine, leading up to ENOENT ERR
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
View 2014-02-03 enoent 2
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
View 2014-02-23 enoent context
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