Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

wrong question - missing package name

This question is not telling me which global package it wants me to update

Steven Parker
Steven Parker
243,318 Points

Please provide a link to the course page you are working with, so someone can see what you are referring to.

If it's a quiz, it would also help to quote the question, since there are usually several.

4 Answers

Steven Parker
Steven Parker
243,318 Points

The challenge says "Update the global package npm."

So the name of the global package it wants you to update is npm (itself).

I thought the same thing but doesn’t look like it. I tried all the options

npm update -g doesn’t work either

Steven Parker
Steven Parker
243,318 Points

Well, no, because you still need to name the package being updated.

The first "npm" on the line just invokes the command. Hint: think of how you would update a global package named "bubba" and then replace "bubba" with "npm".

I tried

npm npm update -g

Still no luck !

Steven Parker
Steven Parker
243,318 Points

You're really close, but that syntax isn't quite right. You might want to review the video that shows an example of a package update command (near the end of the video).

thank you Steven!! I got it.