我想把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.发布于 2019-06-19 22:49:24
您需要从包含项目的文件夹中运行您的终端。根据该消息,终端正在从C:\Users\cbshr\运行。
在Windows中,按住shift键并右键单击文件夹,然后选择“在此处打开命令窗口”或使用cd命令导航到包含您的项目的文件夹。
https://stackoverflow.com/questions/56670382
复制相似问题