From 7bf45a69a0de76a8ad69005c9ab6e7cf661c7482 Mon Sep 17 00:00:00 2001 From: happy Date: Sat, 20 Jul 2013 14:33:02 -0700 Subject: [PATCH 1/5] Added python-software-properties installation to allow adding PPAs --- setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.sh b/setup.sh index 9d5f649a..dd3f1bf3 100755 --- a/setup.sh +++ b/setup.sh @@ -20,6 +20,9 @@ npm install -g jshint # See: http://nodejs.org/api/repl.html#repl_repl sudo apt-get install -y rlwrap +# Install the python-software-properties package to enable installing PPAs +sudo apt-get install python-software-properties + # Install emacs24 # https://launchpad.net/~cassou/+archive/emacs sudo apt-add-repository -y ppa:cassou/emacs From a8190f337c58ea7a3453a001f4ab45aa2c331e30 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 1 Aug 2013 04:26:13 +0000 Subject: [PATCH 2/5] fixed node installation to allow installation of express --- setup.sh | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/setup.sh b/setup.sh index dd3f1bf3..f76320e2 100755 --- a/setup.sh +++ b/setup.sh @@ -8,11 +8,20 @@ sudo apt-get install -y git-core curl https://raw.github.com/creationix/nvm/master/install.sh | sh # Load nvm and install latest production node -source $HOME/.nvm/nvm.sh -nvm install v0.10.12 -nvm use v0.10.12 +#source $HOME/.nvm/nvm.sh +#nvm install v0.10.12 +#nvm use v0.10.12 -# Install jshint to allow checking of JS code within emacs +sudo apt-get update +sudo apt-get install -y python-software-properties python g++ make +sudo add-apt-repository -y ppa:chris-lea.node.js +sudo apt-get update +sudo apt-get install -y nodejs + +# Install express +npm install -g express + +#Install jshint to allow checking of JS code within emacs # http://jshint.com/ npm install -g jshint @@ -20,9 +29,6 @@ npm install -g jshint # See: http://nodejs.org/api/repl.html#repl_repl sudo apt-get install -y rlwrap -# Install the python-software-properties package to enable installing PPAs -sudo apt-get install python-software-properties - # Install emacs24 # https://launchpad.net/~cassou/+archive/emacs sudo apt-add-repository -y ppa:cassou/emacs From 44828ae0faaea551a0f2b38f111262af6206f943 Mon Sep 17 00:00:00 2001 From: Paul Markette Date: Thu, 1 Aug 2013 04:30:52 +0000 Subject: [PATCH 3/5] updated README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 879a736f..f8c2aa14 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ follows: ```sh cd $HOME sudo apt-get install -y git-core -git clone https://github.com/startup-class/setup.git +git clone https://github.com/pmarkette/setup.git ./setup/setup.sh ``` From 3a31fda29c714add49f282aed48a8861f2a91b66 Mon Sep 17 00:00:00 2001 From: Paul Markette Date: Thu, 1 Aug 2013 04:50:45 +0000 Subject: [PATCH 4/5] fixed node ppa typo --- setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index f76320e2..5cd490fb 100755 --- a/setup.sh +++ b/setup.sh @@ -14,7 +14,7 @@ curl https://raw.github.com/creationix/nvm/master/install.sh | sh sudo apt-get update sudo apt-get install -y python-software-properties python g++ make -sudo add-apt-repository -y ppa:chris-lea.node.js +sudo add-apt-repository -y ppa:chris-lea/node.js sudo apt-get update sudo apt-get install -y nodejs @@ -54,3 +54,4 @@ ln -sb dotfiles/.bashrc . ln -sb dotfiles/.bashrc_custom . ln -sf dotfiles/.emacs.d . +alias em='emacs -nw' From 60d1e2b8a4a69b7878230400a91c43b5381a4f8c Mon Sep 17 00:00:00 2001 From: Paul Markette Date: Thu, 1 Aug 2013 05:26:46 +0000 Subject: [PATCH 5/5] fixed express install --- #setup.sh# | 58 ++++++++++++ npm-debug.log | 252 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.sh | 4 +- 3 files changed, 312 insertions(+), 2 deletions(-) create mode 100755 #setup.sh# create mode 100644 npm-debug.log diff --git a/#setup.sh# b/#setup.sh# new file mode 100755 index 00000000..114c72fe --- /dev/null +++ b/#setup.sh# @@ -0,0 +1,58 @@ +#!/bin/bash +# Simple setup.sh for configuring Ubuntu 12.04 LTS EC2 instance +# for headless setup. + +# Install nvm: node-version manager +# https://github.com/creationix/nvm +sudo apt-get install -y git-core +curl https://raw.github.com/creationix/nvm/master/install.sh | sh + +# Load nvm and install latest production node +#source $HOME/.nvm/nvm.sh +#nvm install v0.10.12 +#nvm use v0.10.12 + +sudo apt-get update +sudo apt-get install -y python-software-properties python g++ make +sudo add-apt-repository -y ppa:chris-lea/node.js +sudo apt-get update +sudo apt-get install -y nodejs + +# Install express +npm install -g express + +#Install jshint to allow checking of JS code within emacs +# http://jshint.com/ +npm install -g jshint + +# Install rlwrap to provide libreadline features with node +# See: http://nodejs.org/api/repl.html#repl_repl +sudo apt-get install -y rlwrap + +# Install emacs24 +# https://launchpad.net/~cassou/+archive/emacs +sudo apt-add-repository -y ppa:cassou/emacs +sudo apt-get update +sudo apt-get install -y emacs24 emacs24-el emacs24-common-non-dfsg + +# Install Heroku toolbelt +# https://toolbelt.heroku.com/debian +wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh + +# git pull and install dotfiles as well +cd $HOME +if [ -d ./dotfiles/ ]; then + mv dotfiles dotfiles.old +fi +if [ -d .emacs.d/ ]; then + mv .emacs.d .emacs.d~ +fi +git clone https://github.com/startup-class/dotfiles.git +ln -sb dotfiles/.screenrc . +ln -sb dotfiles/.bash_profile . +ln -sb dotfiles/.bashrc . +ln -sb dotfiles/.bashrc_custom . +ln -sf dotfiles/.emacs.d . + +alias em='emacs -nw' + diff --git a/npm-debug.log b/npm-debug.log new file mode 100644 index 00000000..785caeab --- /dev/null +++ b/npm-debug.log @@ -0,0 +1,252 @@ +0 info it worked if it ends with ok +1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'jshint' ] +2 info using npm@1.3.5 +3 info using node@v0.10.15 +4 verbose node symlink /usr/bin/node +5 verbose cache add [ 'jshint', null ] +6 verbose cache add name=undefined spec="jshint" args=["jshint",null] +7 verbose parsed url { protocol: null, +7 verbose parsed url slashes: null, +7 verbose parsed url auth: null, +7 verbose parsed url host: null, +7 verbose parsed url port: null, +7 verbose parsed url hostname: null, +7 verbose parsed url hash: null, +7 verbose parsed url search: null, +7 verbose parsed url query: null, +7 verbose parsed url pathname: 'jshint', +7 verbose parsed url path: 'jshint', +7 verbose parsed url href: 'jshint' } +8 silly lockFile da5c03cb-jshint jshint +9 verbose lock jshint /home/ubuntu/.npm/da5c03cb-jshint.lock +10 silly lockFile da5c03cb-jshint jshint +11 silly lockFile da5c03cb-jshint jshint +12 verbose addNamed [ 'jshint', '' ] +13 verbose addNamed [ null, '*' ] +14 silly lockFile a02a2468-jshint jshint@ +15 verbose lock jshint@ /home/ubuntu/.npm/a02a2468-jshint.lock +16 silly addNameRange { name: 'jshint', range: '*', hasData: false } +17 verbose url raw jshint +18 verbose url resolving [ 'https://registry.npmjs.org/', './jshint' ] +19 verbose url resolved https://registry.npmjs.org/jshint +20 info trying registry request attempt 1 at 05:04:46 +21 http GET https://registry.npmjs.org/jshint +22 http 200 https://registry.npmjs.org/jshint +23 silly registry.get cb [ 200, +23 silly registry.get { vary: 'Accept', +23 silly registry.get server: 'CouchDB/1.3.0 (Erlang OTP/R15B03)', +23 silly registry.get etag: '"D70TVEIX1J7IKNSF30SQM713C"', +23 silly registry.get date: 'Thu, 01 Aug 2013 05:04:47 GMT', +23 silly registry.get 'content-type': 'application/json', +23 silly registry.get 'content-length': '157728' } ] +24 silly addNameRange number 2 { name: 'jshint', range: '*', hasData: true } +25 silly addNameRange versions [ 'jshint', +25 silly addNameRange [ '0.1.8', +25 silly addNameRange '0.1.9', +25 silly addNameRange '0.2.0', +25 silly addNameRange '0.2.1', +25 silly addNameRange '0.2.2', +25 silly addNameRange '0.2.3', +25 silly addNameRange '0.3.0', +25 silly addNameRange '0.3.1', +25 silly addNameRange '0.4.0', +25 silly addNameRange '0.5.0', +25 silly addNameRange '0.5.1', +25 silly addNameRange '0.5.2', +25 silly addNameRange '0.5.3', +25 silly addNameRange '0.5.4', +25 silly addNameRange '0.5.5', +25 silly addNameRange '0.5.6', +25 silly addNameRange '0.5.7', +25 silly addNameRange '0.5.8', +25 silly addNameRange '0.5.9', +25 silly addNameRange '0.6.0', +25 silly addNameRange '0.6.1', +25 silly addNameRange '0.6.2', +25 silly addNameRange '0.6.3', +25 silly addNameRange '0.7.0', +25 silly addNameRange '0.7.1', +25 silly addNameRange '0.7.2', +25 silly addNameRange '0.7.3', +25 silly addNameRange '0.8.0', +25 silly addNameRange '0.8.1', +25 silly addNameRange '0.8.2', +25 silly addNameRange '0.9.0', +25 silly addNameRange '0.9.1', +25 silly addNameRange '1.0.0', +25 silly addNameRange '1.1.0', +25 silly addNameRange '2.0.0', +25 silly addNameRange '2.0.1', +25 silly addNameRange '2.1.0', +25 silly addNameRange '2.1.1', +25 silly addNameRange '2.1.2', +25 silly addNameRange '2.1.3', +25 silly addNameRange '2.1.4', +25 silly addNameRange '2.1.5', +25 silly addNameRange '2.1.6', +25 silly addNameRange '2.1.7', +25 silly addNameRange '2.1.8' ] ] +26 verbose addNamed [ 'jshint', '2.1.8' ] +27 verbose addNamed [ '2.1.8', '2.1.8' ] +28 silly lockFile 1effb75c-jshint-2-1-8 jshint@2.1.8 +29 verbose lock jshint@2.1.8 /home/ubuntu/.npm/1effb75c-jshint-2-1-8.lock +30 silly lockFile 19dbce61-pmjs-org-jshint-jshint-2-1-8-tgz https://registry.npmjs.org/jshint/-/jshint-2.1.8.tgz +31 verbose lock https://registry.npmjs.org/jshint/-/jshint-2.1.8.tgz /home/ubuntu/.npm/19dbce61-pmjs-org-jshint-jshint-2-1-8-tgz.lock +32 verbose addRemoteTarball [ 'https://registry.npmjs.org/jshint/-/jshint-2.1.8.tgz', +32 verbose addRemoteTarball 'c4bfe5c28718d101148cfba9e285053a7671ccf2' ] +33 info retry fetch attempt 1 at 05:04:47 +34 verbose fetch to= /home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/tmp.tgz +35 http GET https://registry.npmjs.org/jshint/-/jshint-2.1.8.tgz +36 http 200 https://registry.npmjs.org/jshint/-/jshint-2.1.8.tgz +37 verbose tar unpack /home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/tmp.tgz +38 silly lockFile 479cc886-87872-0-7097700901795179-package tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/package +39 verbose lock tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/package /home/ubuntu/.npm/479cc886-87872-0-7097700901795179-package.lock +40 silly lockFile 44d6412b-87872-0-7097700901795179-tmp-tgz tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/tmp.tgz +41 verbose lock tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/tmp.tgz /home/ubuntu/.npm/44d6412b-87872-0-7097700901795179-tmp-tgz.lock +42 silly gunzTarPerm modes [ '755', '644' ] +43 silly gunzTarPerm extractEntry package.json +44 silly gunzTarPerm extractEntry README.md +45 silly gunzTarPerm extractEntry bin/jshint +46 silly gunzTarPerm extractEntry src/cli/cli.js +47 silly gunzTarPerm extractEntry src/platforms/rhino.js +48 silly gunzTarPerm extractEntry src/reporters/checkstyle.js +49 silly gunzTarPerm extractEntry src/reporters/default.js +50 silly gunzTarPerm extractEntry src/reporters/jslint_xml.js +51 silly gunzTarPerm extractEntry src/reporters/non_error.js +52 silly gunzTarPerm extractEntry src/shared/messages.js +53 silly gunzTarPerm extractEntry src/shared/vars.js +54 silly gunzTarPerm extractEntry src/stable/jshint.js +55 silly gunzTarPerm extractEntry src/stable/lex.js +56 silly gunzTarPerm extractEntry src/stable/reg.js +57 silly gunzTarPerm extractEntry src/stable/state.js +58 silly gunzTarPerm extractEntry src/stable/style.js +59 silly lockFile 479cc886-87872-0-7097700901795179-package tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/package +60 silly lockFile 479cc886-87872-0-7097700901795179-package tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/package +61 silly lockFile 44d6412b-87872-0-7097700901795179-tmp-tgz tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/tmp.tgz +62 silly lockFile 44d6412b-87872-0-7097700901795179-tmp-tgz tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/tmp.tgz +63 verbose tar pack [ '/home/ubuntu/.npm/jshint/2.1.8/package.tgz', +63 verbose tar pack '/home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/package' ] +64 verbose tarball /home/ubuntu/.npm/jshint/2.1.8/package.tgz +65 verbose folder /home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/package +66 silly lockFile 479cc886-87872-0-7097700901795179-package tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/package +67 verbose lock tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/package /home/ubuntu/.npm/479cc886-87872-0-7097700901795179-package.lock +68 silly lockFile 6f626f9b-ntu-npm-jshint-2-1-8-package-tgz tar:///home/ubuntu/.npm/jshint/2.1.8/package.tgz +69 verbose lock tar:///home/ubuntu/.npm/jshint/2.1.8/package.tgz /home/ubuntu/.npm/6f626f9b-ntu-npm-jshint-2-1-8-package-tgz.lock +70 silly lockFile 479cc886-87872-0-7097700901795179-package tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/package +71 silly lockFile 479cc886-87872-0-7097700901795179-package tar:///home/ubuntu/tmp/npm-9968-ctFYruhC/1375333487872-0.7097700901795179/package +72 silly lockFile 6f626f9b-ntu-npm-jshint-2-1-8-package-tgz tar:///home/ubuntu/.npm/jshint/2.1.8/package.tgz +73 silly lockFile 6f626f9b-ntu-npm-jshint-2-1-8-package-tgz tar:///home/ubuntu/.npm/jshint/2.1.8/package.tgz +74 silly lockFile 60a1a204--ubuntu-npm-jshint-2-1-8-package /home/ubuntu/.npm/jshint/2.1.8/package +75 verbose lock /home/ubuntu/.npm/jshint/2.1.8/package /home/ubuntu/.npm/60a1a204--ubuntu-npm-jshint-2-1-8-package.lock +76 silly lockFile 60a1a204--ubuntu-npm-jshint-2-1-8-package /home/ubuntu/.npm/jshint/2.1.8/package +77 silly lockFile 60a1a204--ubuntu-npm-jshint-2-1-8-package /home/ubuntu/.npm/jshint/2.1.8/package +78 verbose tar unpack /home/ubuntu/.npm/jshint/2.1.8/package.tgz +79 silly lockFile 148eb1ed--ubuntu-npm-jshint-2-1-8-package tar:///home/ubuntu/.npm/jshint/2.1.8/package +80 verbose lock tar:///home/ubuntu/.npm/jshint/2.1.8/package /home/ubuntu/.npm/148eb1ed--ubuntu-npm-jshint-2-1-8-package.lock +81 silly lockFile 6f626f9b-ntu-npm-jshint-2-1-8-package-tgz tar:///home/ubuntu/.npm/jshint/2.1.8/package.tgz +82 verbose lock tar:///home/ubuntu/.npm/jshint/2.1.8/package.tgz /home/ubuntu/.npm/6f626f9b-ntu-npm-jshint-2-1-8-package-tgz.lock +83 silly gunzTarPerm modes [ '755', '644' ] +84 silly gunzTarPerm extractEntry package.json +85 silly gunzTarPerm extractEntry README.md +86 silly gunzTarPerm extractEntry bin/jshint +87 silly gunzTarPerm extractEntry src/cli/cli.js +88 silly gunzTarPerm extractEntry src/platforms/rhino.js +89 silly gunzTarPerm extractEntry src/reporters/checkstyle.js +90 silly gunzTarPerm extractEntry src/reporters/default.js +91 silly gunzTarPerm extractEntry src/reporters/jslint_xml.js +92 silly gunzTarPerm extractEntry src/reporters/non_error.js +93 silly gunzTarPerm extractEntry src/shared/messages.js +94 silly gunzTarPerm extractEntry src/shared/vars.js +95 silly gunzTarPerm extractEntry src/stable/jshint.js +96 silly gunzTarPerm extractEntry src/stable/lex.js +97 silly gunzTarPerm extractEntry src/stable/reg.js +98 silly gunzTarPerm extractEntry src/stable/state.js +99 silly gunzTarPerm extractEntry src/stable/style.js +100 silly lockFile 148eb1ed--ubuntu-npm-jshint-2-1-8-package tar:///home/ubuntu/.npm/jshint/2.1.8/package +101 silly lockFile 148eb1ed--ubuntu-npm-jshint-2-1-8-package tar:///home/ubuntu/.npm/jshint/2.1.8/package +102 silly lockFile 6f626f9b-ntu-npm-jshint-2-1-8-package-tgz tar:///home/ubuntu/.npm/jshint/2.1.8/package.tgz +103 silly lockFile 6f626f9b-ntu-npm-jshint-2-1-8-package-tgz tar:///home/ubuntu/.npm/jshint/2.1.8/package.tgz +104 verbose chmod /home/ubuntu/.npm/jshint/2.1.8/package.tgz 644 +105 verbose chown /home/ubuntu/.npm/jshint/2.1.8/package.tgz [ 1000, 1000 ] +106 silly lockFile 19dbce61-pmjs-org-jshint-jshint-2-1-8-tgz https://registry.npmjs.org/jshint/-/jshint-2.1.8.tgz +107 silly lockFile 19dbce61-pmjs-org-jshint-jshint-2-1-8-tgz https://registry.npmjs.org/jshint/-/jshint-2.1.8.tgz +108 silly lockFile 1effb75c-jshint-2-1-8 jshint@2.1.8 +109 silly lockFile 1effb75c-jshint-2-1-8 jshint@2.1.8 +110 silly lockFile a02a2468-jshint jshint@ +111 silly lockFile a02a2468-jshint jshint@ +112 silly resolved [ { name: 'jshint', +112 silly resolved version: '2.1.8', +112 silly resolved homepage: 'http://jshint.com/', +112 silly resolved description: 'Static analysis tool for JavaScript', +112 silly resolved author: +112 silly resolved { name: 'Anton Kovalyov', +112 silly resolved email: 'anton@kovalyov.net', +112 silly resolved url: 'http://anton.kovalyov.net/' }, +112 silly resolved repository: { type: 'git', url: 'https://github.com/jshint/jshint.git' }, +112 silly resolved bugs: { url: 'https://github.com/jshint/jshint/issues' }, +112 silly resolved bin: { jshint: './bin/jshint' }, +112 silly resolved scripts: +112 silly resolved { build: 'node ./make.js build', +112 silly resolved test: 'node ./make.js test', +112 silly resolved lint: 'node ./make.js lint' }, +112 silly resolved main: './src/stable/jshint.js', +112 silly resolved dependencies: +112 silly resolved { shelljs: '0.1.x', +112 silly resolved underscore: '1.4.x', +112 silly resolved cli: '0.4.x', +112 silly resolved minimatch: '0.x.x', +112 silly resolved 'console-browserify': '0.1.x' }, +112 silly resolved devDependencies: +112 silly resolved { jshint: '2.1.x', +112 silly resolved shelljs: '0.1.x', +112 silly resolved browserify: '2.12.x', +112 silly resolved coveraje: '0.2.x', +112 silly resolved nodeunit: '0.8.x', +112 silly resolved sinon: '1.7.x' }, +112 silly resolved licenses: [ [Object] ], +112 silly resolved preferGlobal: true, +112 silly resolved files: [ 'bin', 'src' ], +112 silly resolved readme: 'JSHint, A Static Code Analysis Tool for JavaScript\n--------------------------------------------------\n\n\\[ [Use it online](http://jshint.com/) • [About](http://jshint.com/about/) • \n[Docs](http://jshint.com/docs/) • [FAQ](http://jshint.com/docs/faq) • \n[Install](http://jshint.com/install/) • [Hack](http://jshint.com/hack/) • \n[Blog](http://jshint.com/blog/) • [Twitter](https://twitter.com/jshint/) \\]\n\n[![Build Status](https://travis-ci.org/jshint/jshint.png?branch=master)](https://travis-ci.org/jshint/jshint)\n[![NPM version](https://badge.fury.io/js/jshint.png)](http://badge.fury.io/js/jshint)\n\nJSHint is a community-driven tool to detect errors and potential problems\nin JavaScript code and to enforce your team’s coding conventions. It is\nvery flexible so you can easily adjust it to your particular coding guidelines\nand the environment you expect your code to execute in.\n\n#### Reporting a bug\n\nTo report a bug simply create a\n[new GitHub Issue](https://github.com/jshint/jshint/issues/new) and describe\nyour problem or suggestion. We welcome all kind of feedback regarding\nJSHint including but not limited to:\n\n * When JSHint doesn\'t work as expected\n * When JSHint complains about valid JavaScript code that works in all browsers\n * When you simply want a new option or feature\n\nBefore reporting a bug look around to see if there are any open or closed tickets\nthat cover your issue. And remember the wisdom: pull request > bug report > tweet.\n\n\n#### License\n\nJSHint is distributed under the MIT License. One file and one file only\n(src/stable/jshint.js) is distributed under the slightly modified MIT License.\n\n\n#### Thank you!\n\nWe really appreciate all kind of feedback and contributions. Thanks for using and supporting JSHint!\n', +112 silly resolved readmeFilename: 'README.md', +112 silly resolved _id: 'jshint@2.1.8', +112 silly resolved dist: { shasum: '113f97ceefd7b7383ba63ebdf67f8f87dd92e69d' }, +112 silly resolved _from: 'jshint@', +112 silly resolved _resolved: 'https://registry.npmjs.org/jshint/-/jshint-2.1.8.tgz' } ] +113 info install jshint@2.1.8 into /usr/lib +114 info installOne jshint@2.1.8 +115 info /usr/lib/node_modules/jshint unbuild +116 verbose tar unpack /home/ubuntu/.npm/jshint/2.1.8/package.tgz +117 silly lockFile 5d4bbf58-tar-usr-lib-node-modules-jshint tar:///usr/lib/node_modules/jshint +118 verbose lock tar:///usr/lib/node_modules/jshint /home/ubuntu/.npm/5d4bbf58-tar-usr-lib-node-modules-jshint.lock +119 silly lockFile 6f626f9b-ntu-npm-jshint-2-1-8-package-tgz tar:///home/ubuntu/.npm/jshint/2.1.8/package.tgz +120 verbose lock tar:///home/ubuntu/.npm/jshint/2.1.8/package.tgz /home/ubuntu/.npm/6f626f9b-ntu-npm-jshint-2-1-8-package-tgz.lock +121 silly gunzTarPerm modes [ '755', '644' ] +122 error Error: EACCES, mkdir '/usr/lib/node_modules/jshint' +122 error { [Error: EACCES, mkdir '/usr/lib/node_modules/jshint'] +122 error errno: 3, +122 error code: 'EACCES', +122 error path: '/usr/lib/node_modules/jshint', +122 error fstream_type: 'Directory', +122 error fstream_path: '/usr/lib/node_modules/jshint', +122 error fstream_class: 'DirWriter', +122 error fstream_stack: +122 error [ '/usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23', +122 error '/usr/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53', +122 error 'Object.oncomplete (fs.js:107:15)' ] } +123 error Please try running this command again as root/Administrator. +124 error System Linux 3.2.0-40-virtual +125 error command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "jshint" +126 error cwd /home/ubuntu/setup +127 error node -v v0.10.15 +128 error npm -v 1.3.5 +129 error path /usr/lib/node_modules/jshint +130 error fstream_path /usr/lib/node_modules/jshint +131 error fstream_type Directory +132 error fstream_class DirWriter +133 error code EACCES +134 error errno 3 +135 error stack Error: EACCES, mkdir '/usr/lib/node_modules/jshint' +136 error fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23 +136 error fstream_stack /usr/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53 +136 error fstream_stack Object.oncomplete (fs.js:107:15) +137 verbose exit [ 3, true ] diff --git a/setup.sh b/setup.sh index 5cd490fb..a4db00de 100755 --- a/setup.sh +++ b/setup.sh @@ -18,8 +18,8 @@ sudo add-apt-repository -y ppa:chris-lea/node.js sudo apt-get update sudo apt-get install -y nodejs -# Install express -npm install -g express +# Install the dependencies defined on package.json including express +npm install #Install jshint to allow checking of JS code within emacs # http://jshint.com/