简体   繁体   中英

Node.js how to install learnyounode?

I want to start learning Node.js, in the main site there was a link to: nodeschool

And there was a link to: learnyounode

I read the README file, but I dont understand what I should download from there, also I dont get where to put the files that I should download

Because I try to run with nothing the command they said there:

sudo npm install learnyounode -g

And I just get an error: Unexpected Identifer

Also, where do I need to put the js files that I create before I run them ?

Please help, thanks

I did a search before I wrote, and I found those Que's How do I get started with Node.js , https://stackoverflow.com/questions/4274167/how-to-start-node-js but no one talked about learnyounode

Learnyounode is just like any other NPM package for that matter. I think what you are trying should work, but for some reason, last time I tried I experienced that problem too, and by taking out the "sudo" it got installed. Try using npm install learnyounode -g in the shell. After installing it, its started via the command line.

You can place the js files you create wherever you want, but you will need to specify the route when entering a solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM