This was what I got in my terminal.
I have mongoDB and node.js installed already..
If anyone can help me with this I'll appreciate it a lot!
Thank you...
From what I see in your terminal, I think your installation for mongoose is successful. And you are staring your application using nodemon but I think that is not installed as you are getting an error nodemon: command not found. So first you will need to install nodemon using,
npm install -g nodemon
Related
I tried many ways but it is coming the same always Any way how to fix it?
Check if you have npm install by typing npm --version
If you don't have npm follow this link to download Node.js to your computer. https://nodejs.org/en/download/
After installation you can use npx command.
I recently update my node.js version and npm and now I am getting a error:
$ nodemon
C:\Users\username\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found;
I have tried uninstalling and reinstalling, I am pretty new to using nodemon and node. I have searched the previous questions and tried updating my Path variables but so far nothing has worked.
Have you installed nodemon globally or just installed it ? If not , try npm install -g nodemon to install it globally.
If uninstalling and then reinstalling of nodemon module did not work, please try npx nodemon script.js . I tried it in my VS Code Git Bash terminal and found it working.
I am trying to install PM2 for node.js, But whenever i am installing it gets stuck at the very start,I tried googling it but cant find anything related to my problem,I am on Windows 10,I cannot install any module!
I reinstalled my windows and thats it,No one was able to help except telling me to update npm which i did but didnt work.
Been at this for a couple nights now, trying to get Grunt.js to work on my mac.
I've installed Homebrew, Node.js, npm... but when I try to install grunt-cli I get an error.
Im running in my terminal: npm install -g grunt-cli
The error is -bash: npm: command not found
I've been searching forever trying to figure out what this means. I've deleted all instances of node I could find and re-installed.
When I run npm -v I get -bash: npm: command not found
What is going on? I need help.
Thank you.
UPDATE: Turns out I had to reinstall Node and make sure my file paths were correct again.
The node.js is v0.6.13.
npm install mongodb
it failed when it start GET https://registry.npmjs.org/bson/0.0.4
And I try to download mongo library from https://github.com/christkv/node-mongodb-native
when I run
var m=require('mongodb');
It said "Error: Cannot find module 'bson'"
Any Idea why this happend? Please give some advice
Thank you
try again, seems something changed in node 0.6.13 that broke it for everyone. I removed os checks completely so it should work fine now.