简体   繁体   English

无法在角度2中使用typeorm,未找到模块mysql

[英]Failed to use typeorm in angular 2, module mysql not found

I tried to use use typeorm in angular2. 我尝试在angular2中使用typeorm。 So i installed typeorm npm install typeorm and mysql by npm install mysql and now when I run my app I get the following error: Mysql package has not been found installed. Try to install it: npm install mysql --save" 所以我通过npm install mysql安装了typeorm npm install typeorm和mysql,现在当我运行我的应用程序时,我收到以下错误: Mysql package has not been found installed. Try to install it: npm install mysql --save" Mysql package has not been found installed. Try to install it: npm install mysql --save"

Can someone help me? 有人能帮我吗?

I tried to use use typeorm in angular2. 我尝试在angular2中使用typeorm。

You cannot use TypeORM in the browser with MySQL, you have to use the WebSQL driver . 你不能在MySQL浏览器中使用TypeORM,你必须使用WebSQL驱动程序

To use TypeORM with MySQL you have to use NodeJS. 要将TypeORM与MySQL一起使用,您必须使用NodeJS。

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

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