After installing with npm install -g how-to-npm then typing how-to-npm the first challenge in the tutorial is “install npm”. I ran how-to-npm verify; it states that it doesn’t have the lastest version so I did what the instruction stated which was npm install npm -g but after I run it it says the solution is correct? What is wrong with the update?
Hey, you can download node and run everything locally.
I’ve tried that and tried also on nitrous,io but it won’t let me pass some of the challenges, including the first one “install npm”. I keep getting your solution is not correct because I can’t update it. I’ve talked to someone on this site’s chat yesterday about this problem and he said that i need cloud nine to do the problems because I need to get something from cloud nine
I reverted your edit to the question, as your edit meant the thread doesn’t make sense.
I can’t replicate your issue on Cloud9, it works fine for me.
Here is my session log. I bolded my terminal input so you can see exactly what I typed (click to expand):
Session Log
Hello, and welcome to the npm adventure workshop! I am going to be
asking you to do various things with npm so that you can get started
with it easily.
Some helpful commands:
npm help … Get help with npm
how-to-npm print … Re-display the current exercise
how-to-npm verify … Verify that you have finished an exercise
how-to-npm solution . Show the solution for the current exercise
The first thing we’re going to do is make sure that your npm
version is up to date.
Run how-to-npm verify
once that is done.
(This is the only part of the workshop that requires network access.
If the network is busted, and you want to skip this one, you can run
how-to-npm verify skip
to skip it.)
jacksonbates:~/workspace $ how-to-npm verify
verifying that npm is installed…
You have version 2.14.4 installed. Great!
Now let’s see what the latest version is… wait for it…
The latest npm is: 3.10.6
You have version 2.14.4, but the latest is 3.10.6
Run npm install npm -g
to upgrade it
(You can also just skip this if you want)
#########################################
YOUR SOLUTION IS NOT CORRECT!
#########################################
jacksonbates:~/workspace $ npm install npm -g
/home/ubuntu/.nvm/versions/node/v4.1.2/bin/npm -> /home/ubuntu/.nvm/versions/node/v4.1.2/lib/node_modules/npm/bin/npm-cli.js
npm@3.10.6 /home/ubuntu/.nvm/versions/node/v4.1.2/lib/node_modules/npm
jacksonbates:~/workspace $ how-to-npm verify
verifying that npm is installed…
You have version 3.10.6 installed. Great!
Now let’s see what the latest version is… wait for it…
The latest npm is: 3.10.6
Congratulations!
You have a recent version of npm installed!
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@ YOUR SOLUTION IS CORRECT! @@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
that’s the problem, i can’t get on cloud nine because I don’t have a credit card. So I tried locally and on nitrous.io but it won’t update
What operating system are you on when you try it locally?
i’m using window vista
Some other troubleshooting questions:
- Are you able to install Node locally?
- Are you able to use NPM?
- What output do you get when you type this at the command prompt:
node -v
- What output do you get when you type this at the command prompt:
npm -v
- What output do you get when you type this at the command prompt:
npm install npm -g
Update
Meanwhile, I’ve been trying to update npm on Nitrous and can see that there is a problem there.
Some more investigation suggests that Windows Vista will not be a great long-term platform for you to work on Node, since node is built on Chrome’s V8 engine, and Chrome are dropping support for Vista. You could find later versions of Node not working on your machine…
Ok, I got it working on Nitrous…after much pissing about!
Assuming you can get how-to-npm running, here’s what you do next.
- For the first challenge
how-to-npm verify
reports that you have an old version of npm installed, and it tells you to runnpm install npm -g
to update it - DON’T DO THIS
- Instead, type this at the command line:
curl -L https://www.npmjs.com/install.sh | sh
- This will download and install the most recent npm for you without actually using npm.
- It will spew up lots of info, but eventually say ‘it worked’
- You can check by typing
npm -v
and you should see the most recent npm version number (currently 3.10.7) -
how-to-npm verify
will now pass, and victory never tasted so sweet.
Source (kinda…): https://gist.github.com/DanHerbert/9520689
It worked! Thanks for your time and patience. You’re a GENIUS!!!
Nah, just stubborn, and I like a challenge!
Thanks!!)
I have the same problem
Looks like there’s an issue with input validation also … a trialing / (slash) in url entered provides incorrect results.