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 trialSeth Johnson
15,200 Pointsnodemon "command not found" quandary in my terminal
Ok, I did everything as exactly as I can figure while following along with this video, but by the time I got to the very end and tried typing the simple 'nodemon' command, I received the following in response:
-bash: nodemon: command not found
Which I'm really struggling to make sense of, since it appears that nodemon did in fact succesfully install via my terminal, unless I'm missing something:
node-pre-gyp WARN Using needle for node-pre-gyp https download
[fsevents] Success: "/usr/local/Cellar/node/11.13.0/lib/node_modules/nodemon/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node" is installed via remote
> nodemon@1.18.10 postinstall /usr/local/Cellar/node/11.13.0/lib/node_modules/nodemon
> node bin/postinstall || exit 0
Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate
+ nodemon@1.18.10
added 291 packages from 145 contributors in 26.323s
Any help or a clue to point me in the right direction would be much appreciated. Thanks!
2 Answers
Seth Johnson
15,200 PointsHey Dave, thanks for the reply! I'm on a MacOS terminal (using High Sierra), and the command I used was (to the best of my knowledge) the same one used in the video:
npm install -g nodemon
Additionally, I'm using express 4.16.4, which is the latest version as of 4/6/19.
Tobias Alpskog
12,044 PointsHi, I'm a bit late but had similar issues. The differences are I installed nodemon locally and I am on Linux Mint. Solved it by running "npx nodemon" instead of "nodemon".
From GitHub installation: "With a local installation, nodemon will not be available in your system path. Instead, the local installation of nodemon can be run by calling it from within an npm script (such as npm start) or using npx nodemon."
Dave StSomeWhere
19,870 PointsDave StSomeWhere
19,870 PointsWhat is your OS and what command did you enter to install nodemon?