Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript npm Basics (retiring) Updating and Uninstalling Packages with npm Updating Global Packages with npm

What is the answer and why?

What is the answer and why?

2 Answers

Steven Parker
Steven Parker
218,639 Points

You might want to review the Updating Packages with npm video, particularly the part starting at about 4:26.

Steven Parker
Steven Parker
218,639 Points

The command should come before the option, and you still need to name the package being updated.

I tried npm update and npm -g update neither worked and I saw the video twice I didn't get it