简体   繁体   中英

How do i Solve the following error while runnin npm install mysqljs/mysql?

I wanted to install the Mysql into my node.js project. I tried to install it using these commands

npm install mysqljs/mysql
npm install mysql

but I got the following error

npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\cbshr\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\cbshr\package.json'
npm WARN cbshr No description
npm WARN cbshr No repository field.
npm WARN cbshr No README data
npm WARN cbshr No license field.


npm install mysqljs/mysql
npm install mysql


npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\cbshr\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\cbshr\package.json'
npm WARN cbshr No description
npm WARN cbshr No repository field.
npm WARN cbshr No README data
npm WARN cbshr No license field.

You need to run your terminal from the folder that contains your project. Based on the message, the terminal is running from C:\\Users\\cbshr\\ .

In Windows, shift-rightclick in the folder and choose "Open Command Window Here' or use the cd command to navigate to the folder containing your project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM