mysql - Visual Studio 2013 MySQL 模块安装失败

标签 mysql node.js npm visual-studio-2013

当我尝试通过 Visual Studio 2013 npm 包管理安装 Node.JS MySQL 模块时,安装因以下错误而失败:

npm ERR! Failed to parse json
npm ERR! Unexpected token 

我该如何解决这个问题,或者有其他方法可以解决这个问题吗?

最佳答案

我已经设法解决了这个问题。我唯一需要做的是新建项目 > 空白 Express 应用程序(而不是空白的 Node.js 控制台/Web 应用程序)。然后,在解决方案资源管理器中,右键单击 npm > 管理 npm 模块 > 在本地搜索并安装所需的包。

关于mysql - Visual Studio 2013 MySQL 模块安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20507483/

相关文章:

node.js - 如何在 Loopback 4 身份验证策略中重定向?

javascript - 哟发电机子发电机不可用。当进行 NPM 安装时,它不会拉取所有代码

php - 不允许更新 php 中的空文本框

java - 无法使用crontab在mysql数据库中插入utf-8字符来自动化程序

mysql - 我被 mysql 的更新困住了

mysql - 协助解释MySQL指令: "To avoid getting this error while trying to drop a foreign key, use the constraint name rather than ..."

node.js - 如何使用 ES6 在 NodeJS 中创建具有异步导出的模块

node.js - 如何通过 express 使用 Node.js 0.8.x 域?

docker - HyperLedger Fabric v1.4.4:在mychannel上实例化智能合约,但出现错误

node.js - "npm config set registry https://registry.npmjs.org/"在 windows bat 文件中不工作