Skip to content

Instantly share code, notes, and snippets.

@sang4lv
Created January 6, 2013 09:03
Show Gist options
  • Save sang4lv/4466191 to your computer and use it in GitHub Desktop.
Save sang4lv/4466191 to your computer and use it in GitHub Desktop.
Express Error
Angelas-Mac:~ angelazou$ sudo npm install -g [email protected]
Password:
npm http GET https://registry.npmjs.org/express/2.5.8
npm http 200 https://registry.npmjs.org/express/2.5.8
npm http GET https://registry.npmjs.org/express/-/express-2.5.8.tgz
npm http 200 https://registry.npmjs.org/express/-/express-2.5.8.tgz
npm WARN engine [email protected]: wanted: {"node":">= 0.4.1 < 0.7.0"} (current: {"node":"v0.8.16","npm":"1.1.69"})
npm http GET https://registry.npmjs.org/connect
npm http GET https://registry.npmjs.org/mime/1.2.4
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/mkdirp/0.3.0
npm http 200 https://registry.npmjs.org/mkdirp/0.3.0
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz
npm http 200 https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/qs/-/qs-0.4.2.tgz
npm http 200 https://registry.npmjs.org/mime/1.2.4
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.4.tgz
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz
npm http 200 https://registry.npmjs.org/qs/-/qs-0.4.2.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.4.tgz
npm http 200 https://registry.npmjs.org/connect
npm http GET https://registry.npmjs.org/connect/-/connect-1.9.2.tgz
npm http 200 https://registry.npmjs.org/connect/-/connect-1.9.2.tgz
npm WARN package.json [email protected] No README.md file found!
npm http GET https://registry.npmjs.org/formidable
npm http 200 https://registry.npmjs.org/formidable
npm http GET https://registry.npmjs.org/formidable/-/formidable-1.0.11.tgz
npm http 200 https://registry.npmjs.org/formidable/-/formidable-1.0.11.tgz
/usr/local/bin/express -> /usr/local/lib/node_modules/express/bin/express
[email protected] /usr/local/lib/node_modules/express
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected])
Angelas-Mac:~ angelazou$ express authentication
create : authentication
create : authentication/package.json
create : authentication/app.js
create : authentication/public
create : authentication/public/javascripts
create : authentication/public/images
create : authentication/public/stylesheets
create : authentication/public/stylesheets/style.css
create : authentication/routes
create : authentication/routes/index.js
create : authentication/views
create : authentication/views/layout.jade
create : authentication/views/index.jade
dont forget to install dependencies:
$ cd authentication && npm install
Angelas-Mac:~ angelazou$ cd authentication && npm install
npm WARN package.json [email protected] No README.md file found!
npm ERR! Error: EACCES, open '/Users/angelazou/.npm/70a1a393-express-2-5-8.lock'
npm ERR! { [Error: EACCES, open '/Users/angelazou/.npm/70a1a393-express-2-5-8.lock']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/angelazou/.npm/70a1a393-express-2-5-8.lock' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/angelazou/authentication
npm ERR! node -v v0.8.16
npm ERR! npm -v 1.1.69
npm ERR! path /Users/angelazou/.npm/70a1a393-express-2-5-8.lock
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/angelazou/.npm/70a1a393-express-2-5-8.lock'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/angelazou/authentication/npm-debug.log
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment