SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Aug 2008
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ch.1 Windows Install

    I am new to node and seem to be stuck on ch.1

    I have set installed node using the windows install package, and it appears to be working fine with the hello world test etc.

    Do I need to install Expess also or is this included with the install?

    Also is there a certain directory where I should store my files such as the form and ap.js?

  2. #2
    SitePoint Author
    Join Date
    Nov 2012
    Posts
    48
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You will need to install Express via npm. Instructions are included in the book. You are free to choose any directory you wish

  3. #3
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm trying to install Express via npm courtesy of the instructions in the book. All I get from the console is this:
    > sudo npm install -g express@2.5.8
    ...
    Nothing happens beyond that.

  4. #4
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind. Was trying to install it while within node. I tried installing without the "sudo" (i.e., > npm install -g express@2.5.8) and cmd said, "npm should be run outside of node repl in your normal shell." So I exited node, and ran it from the shell without sudo, and it worked.

  5. #5
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had a lot of trouble at this point too and found same issue/ambiguity with sudo as Bob. Express was still not installing - finally figured out I needed to run cmd in administrator mode. Ok for now. Cheers Nik

  6. #6
    SitePoint Member
    Join Date
    Apr 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers Bob - you're not the only one!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •