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

Michael Williams
PLUS
Michael Williams
Courses Plus Student 8,059 Points

Got a slew of errors when installing nodemon, but I don't know what they mean. Can someone help me understand them?

When I copy and paste the terminal text it becomes unreadable. Here's a screenshot of it instead.

5 Answers

Brendan Whiting
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brendan Whiting
Front End Web Development Techdegree Graduate 84,735 Points

You're running into a permissions issue when trying to install an npm package globally.

You could try using sudo with sudo npm install -g nodemon and putting in your credentials if prompted.


You also might consider not installing nodemon as a global package.

  • You could install nodemon as a dev dependency for the project (npm install --save-dev nodemon), and then running it with an npm script in your package.json...
  "scripts": {
    "dev": "nodemon server.js"
  },

...and then run npm run dev

  • You could run nodemon using npx, which lets you run global packages without actually installing them locally.
npx nodemon server.js

But you'll likely end up with the same permissions issue installing that global npx as a global package (and have to use sudo). It is worth looking into though because installing a lot of global packages on your machine isn't necessarily a good idea.

Michael Williams
Michael Williams
Courses Plus Student 8,059 Points

Thank you Brendan Whiting. Could you point me in the direction of something that explains what all of this means? I think that would be helpful, too. I don't even know what the packages are or what installing them globally means. I'm just typing what the videos tell me to type.

Michael Williams
PLUS
Michael Williams
Courses Plus Student 8,059 Points

I'm taking the Express Basics course. Am a little out of my element there, as it's new concepts that are kinda confusing.

But that list is exactly what I'm looking for. If I go through all those courses, will they help me feel confident in setting up IDEs on my own, Brendan Whiting?

Just to give context, my end goal is to figure out how to work with the Fitbit API. I learned what I needed from the AJAX course in the JavaScript Front End course, but none of it really paved the way to working with the FitBit API. So I'm trying to figure it out in an unstructured approach... In other words, I'm going from course to course, hoping it's what I need because right now, I don't know what I don't know.

Regardless, thank you, again!

Brendan Whiting
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brendan Whiting
Front End Web Development Techdegree Graduate 84,735 Points

Yes this should help you along. Not to nitpick, but people usually refer to an IDE as something like WebStorm or PyCharm that is kind of like a text editor with extra features. You don't necessarily need to be using one. But I think what you mean is just getting everything set up on your machine so that you have the right environment to do your work.

I looked at the FitBit docs and they look well put together with some examples. But they do assume a certain base knowledge. Feel free to post any questions here. Fitbit also has a community forum.

Michael Williams
PLUS
Michael Williams
Courses Plus Student 8,059 Points

I'll keep at it Brendan Whiting. I asked the Fitbit specific question in a form a week or so ago, and the response was helpful but I still felt like I didn't have an action plan that would help get me to where I needed to go. Could you recommend a progression of Treehouse Courses that could set me up for success in conjunction with studying their documentation?

And I don't think I understood the IDE phrase completely. The part I was particularly needing help with/struggling with was setting up my machine so that I could test stuff without having to use a Treehouse Workspace. In several video they say that if you just write code to interact with APIs in Visual Studio it wouldn't run unless everything is set up properly server-wise. That's where I have zero knowledge.

Michael Williams
PLUS
Michael Williams
Courses Plus Student 8,059 Points

Thanks, Brendan Whiting. I had no clue half of these courses existed at Treehouse. Very thorough!

Michael Williams
PLUS
Michael Williams
Courses Plus Student 8,059 Points

Thanks for looking out. I'll check them both out. Looks like I have until March 4 for the other one.