Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9132377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:18:07+00:00 2026-06-17T08:18:07+00:00

ok … first time I’m trying my hand at node.js. installed it a while

  • 0

ok … first time I’m trying my hand at node.js.

installed it a while back, and not sure how i installed it.

last night, decided to tackle a tutorial regarding node.js and express.

checked my version of node which is v0.8.14 and npm which is 1.1.65. (I’m on Mac, 10.6.8 version)

but did this anyway

npm install -g express

seemed to go ok … but whenever I tried to generate a new application via

express new ProjectName

I got this:

-bash: express: command not found

Decided to try

 sudo npm install express -g

which again seemed to go well … but again, the express new ProjectName got the same statement.

tried again:

npm install -g express  

got a lot of errors unlike the first time.

npm WARN package.json application-name@0.0.1 No README.md file found!
AA-s-MacBook-Pro:express_node aa$ express new HotPie
-bash: express: command not found
AA-s-MacBook-Pro:express_node aa$ npm cache clean
AA-s-MacBook-Pro:express_node aa$ npm install -g express
npm http GET https://registry.npmjs.org/express
npm http 200 https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/express/-/express-3.0.6.tgz
npm http 200 https://registry.npmjs.org/express/-/express-3.0.6.tgz
npm ERR! error rolling back Error: EPERM, chmod '/usr/local/share/npm/bin/express'
npm ERR! error rolling back  express@3.0.6 { [Error: EPERM, chmod '/usr/local/share   /npm/bin/express']
npm ERR! error rolling back   errno: 50,
npm ERR! error rolling back   code: 'EPERM',
npm ERR! error rolling back   path: '/usr/local/share/npm/bin/express' }
npm ERR! Error: EPERM, chmod '/usr/local/share/npm/bin/express'
npm ERR!  { [Error: EPERM, chmod '/usr/local/share/npm/bin/express']
npm ERR!   errno: 50,
npm ERR!   code: 'EPERM',
npm ERR!   path: '/usr/local/share/npm/bin/express' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 10.8.0
npm ERR! command "/usr/local/Cellar/node/0.8.14/bin/node" "/usr/local/bin/npm" "install" "-g" "express"
npm ERR! cwd /Users/aa/Documents/express_node
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.65
npm ERR! path /usr/local/share/npm/bin/express
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, chmod '/usr/local/share/npm/bin/express'
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/aa/Documents/express_node/npm-debug.log
npm ERR! not ok code 0

and so it went on and on: errors … or no errors. I’m at total loss. and online literature on fixing this problem seems rather sparse.

advice, please?

oh, also saw this somewhere online: (whatever it means)

/usr/local/share/npm/bin/express 

which resulted in this:

destination is not empty, continue? 
destination is not empty, continue? (yes or no) yes

   create : .
   create : ./package.json
   create : ./app.js
   create : ./public/javascripts
   create : ./public/images
   create : ./public/stylesheets
   create : ./public/stylesheets/style.css
   create : ./routes
   create : ./routes/index.js
   create : ./routes/user.js
   create : ./views
   create : ./views/layout.jade
   create : ./views/index.jade
   create : ./public

   install dependencies:
     $ cd . && npm install

   run the app:
     $ node app

so … ??? any advice would be appreciated! (please also let me know if I left any pertinent information required)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:18:08+00:00Added an answer on June 17, 2026 at 8:18 am

    Sounds like you need to edit your path variable.

    Edit your ~/.bash_profile. Add this export somewhere.

    export PATH=/usr/local/bin:$PATH:/usr/local/share/npm/bin
    

    What’s happening is that node isn’t setting up its PATH correctly. I’ve had this happen to me before. Its something they should fix.

    You may not have a .bash_profile. In *nix systems, there are a few different files you can place in your home directory to add environment variables and such.

    bash_profile is the one I prefer, so in the terminal cd to ~ and touch .bash_profile.

    Then edit it via nano .bash_profile or whatever editor you like.

    (In nano, control-o to save, control-x to exit.)

    When you’ve added it, do: source .bash_profile

    Then try which express and see if it shows the path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so I did $subject = 'sakdlfjsalfdjslfad <a href=something/8230>lol is that true?</a> lalalala'; $subject =
I have an element like this: <span class=tool_tip title=The full title>The ful&#8230;</span> This seems
English is not my native language. I need a software to spellcheck and correct
Why does the Android system throw this Exception? 05-18 12:33:44.169 W/System.err( 8230): java.io.IOException: Is
I have this xml <entry id=1008 section=articles> <excerpt><p>&#8230; in Richtung „Aus für Tierversuche. Kosmetik-Fertigprodukte
I'm using a plugin to show only the first 500 characters of a text...
I'm trying to write a script to launch xfce and xbmc in their own
Yesterday I installed ADT plug-in again as I was having problems (intermittent) with the
I'm trying to work out why it won't let me attach a file from
CGI.escapeHTML is pretty bad, but CGI.unescapeHTML is completely borked. For example: require 'cgi' CGI.unescapeHTML('&#8230;')

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.