繁体   English   中英

如何在运行npm install mysqljs / mysql时解决以下错误?

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

我想将Mysql安装到我的node.js项目中。 我尝试使用这些命令安装它

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.


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.

您需要从包含项目的文件夹中运行终端。 根据该消息,终端从C:\\Users\\cbshr\\

在Windows中,按住Shift键并右键单击该文件夹并选择“在此处打开命令窗口”或使用cd命令导航到包含项目的文件夹。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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