MrPancakers / ragemp-mysql

A basic RageMP MySQL script to help get you started with a quick account system so you don't have to worry about setting it all up yourself. This has been coded to make it as readable as possible for beginners.
13 stars 14 forks source link

Error: Cannot find module 'mysql' #3

Closed iqtak closed 5 years ago

iqtak commented 5 years ago

Hej , i try on linux start but have this issues !! What to do 4 fix ? ------------------------------------ srv log ------------------------------------

[N] Starting network... - OK: (IPv4-only) at 127.0.0.1:22005 Loading packages "mysql" loaded Error: Error: Cannot find module 'mysql' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15) at Function.Module._load (internal/modules/cjs/loader.js:513:25) at Module.require (internal/modules/cjs/loader.js:643:17) at require (internal/modules/cjs/helpers.js:22:18) at Object. (/home/ragemp-srv/packages/mysql/mysql.js:1:75) at Module._compile (internal/modules/cjs/loader.js:707:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10) at Module.load (internal/modules/cjs/loader.js:605:32) at tryModuleLoad (internal/modules/cjs/loader.js:544:12) at Function.Module._load (internal/modules/cjs/loader.js:536:3) [P] Plugin bridge.so loaded! Started HTTP server at 22006 port.

iqtak commented 5 years ago
MrPancakers commented 5 years ago

You haven't installed the npm modules as outlined in the instructions. If you need further help contact through the forums.