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 Uninstalling Packages with npm

Uninstall the global package coffee-script.

Please help me I'm stuck.

1 Answer

npm uninstall coffee-script -g

Uninstalling should be pretty easy and keep in mind that when you want to do something globally just add a -g

It still says 'You're missing the coffee-script package'

Thomas Ma did you install coffee-script globally? npm install coffee-script -g also it is up to you if you want to use coffee-script globally or not. personally i would not install globally, and if i recall in updating and uninstalling with npm course you did not need to install coffeesciprt but just for example? To install something to your project, you would do npm install whatever you want to install. If you want to install something globally you would also do npm install whatever you want to install -g and add a -g to install globally. To uninstall, it is about the same thing, npm uninstall whatever you want to install. Then if u want to uninstall a package that is global, npm uninstall whatever package -g with a dash g again at the end. Hope this helps!