garann / node-for-frontend-devs Goto Github PK
View Code? Open in Web Editor NEWExample code from the book of the same name.
Home Page: http://shop.oreilly.com/product/0636920023258.do
Example code from the book of the same name.
Home Page: http://shop.oreilly.com/product/0636920023258.do
Hi, I just bought your book, but I'm having some trouble working through a number of the stages because of a problem with connect.router.
It seems that this router method was removed from connect some time ago.
http://stackoverflow.com/questions/10266168/node-js-connent-modul-error-information
Simply npm installing express doesn't magically fix the issue, I was hoping you might have some pointers on getting these examples updated.
They seem to be used frequently in the rest of the book, and I'd really like to finish this templating section.
Thanks
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.