Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'mysql' #13

Open
blueberrry opened this issue Jun 23, 2023 · 0 comments
Open

Cannot find module 'mysql' #13

blueberrry opened this issue Jun 23, 2023 · 0 comments

Comments

@blueberrry
Copy link

blueberrry commented Jun 23, 2023

Hey, I have install mysql and can run mysql -v in pwsh.
I've followed the steps and changed the password in database.js.

When I run npm i, an error is thrown stating it cannot find module 'mysql'

`
npm start

[email protected] start C:\projects\coffee-learner\coffee-api
nodemon server.js

[nodemon] 1.19.1
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node server.js
module.js:550
throw err;
^

Error: Cannot find module 'mysql'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (C:\projects\coffee-learner\coffee-api\app\controllers\product.controller.js:1:77)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
[nodemon] app crashed - waiting for file changes before starting...
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant