Home > database >  trouble in installation of mongodb for node.js on windows10 with node version 14.4
trouble in installation of mongodb for node.js on windows10 with node version 14.4

Time:03-07

I need to install mongodb for node.js. but it showing the following error.

C:\react_native_node_app\node_db_exp>node -v v14.4.0

C:\react_native_node_app\node_db_exp>npm install mongodb 
npm WARN saveError ENOENT: no such file or directory, open 'C:\react_native_node_app\node_db_exp\package.json' 
npm WARN enoent ENOENT: no such file or directory, open 'C:\react_native_node_app\node_db_exp\package.json' 
npm WARN node_db_exp No description 
npm WARN node_db_exp No repository field. 
npm WARN node_db_exp No README data 
npm WARN node_db_exp No license field.

[email protected] added 20 packages from 59 contributors and audited 20 packages in 9.832s
3 packages are looking for funding run npm fund for details

found 0 vulnerabilities

could anyone help in this? I am using node annd mongodb for the first time by following the tutorials at w3schools.com

CodePudding user response:

There is no error. It's just a warning. You have successfully installed the mongodb driver.

CodePudding user response:

I have sorted this issue by installing the setup of mongodb manually and now the commands are working properly. Perhaps! node module is not sufficient to run the commands.

D:\react_native_node_app\example_node_files>node App.js Database created!

C:\Users\Radhaswami\node_db_exp>node demo_create_mongo_db.js Database created!

thank you everyone for your precious time and guidelines. I have installed from the link https://www.mongodb.com/try/download/community suggested by Mr. Wernfried Domscheit.

  • Related