Skip to content

text errata - Ch. 1, p. 2, using curl to install npm #2

Description

@faddah

i all ready put this on the errata page for your book, but i thought i'd post here for you too.

this is regarding your book, "Node for Front-End Developers," by Garann Means, published by O'Reilly in 2012, ISBN: 9781449318833.

at the top of chapter 1: Getting Node Set Up, page 2, where you say to use this command line to install the node package manager (npm) —

$ curl http://npmjs.org/install.sh | sh

when you do that, as of today, 20-May-2014, you get the following error back from npmjs.org —

$ curl http://npmjs.org/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   193  100   193    0     0   1431      0 --:--:-- --:--:-- --:--:--  1440
sh: line 1: html: No such file or directory
sh: line 2: syntax error near unexpected token `<'
'h: line 2: `<head><title>301 Moved Permanently</title></head>

the correct command should be —

$ curl -L http://npmjs.org/install.sh | sh

the "-L" is for location redirects, the directory for the tarball and install has moved, permanently, at npmjs.org. see —

npm/npm#1641 (look for final answer toward the bottom).

i have also submitted this in your errata page for this book — http://www.oreilly.com/catalog/errata.csp?isbn=0636920023258

best,

— faddah wolf
portland, oregon, u.s.a.
github.com/faddah

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions