Cannot find module './driver/base'


#1

Dear Meteorites

When I run ‘meteor’ at the commandline, everything works fine.

When I do a mup deploy, I get this error. Please help to debug this. I am unable to deploy for more than a week now!! :frowning:

=> Starting meteor app on port:80
/built_app/programs/server/node_modules/fibers/future.js:280
throw(ex);
^

Error: Cannot find module './driver/base’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/built_app/programs/server/npm/node_modules/meteor/ddp-serve
r/node_modules/sockjs/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver.js
:9:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
=> Starting meteor app on port:80
/built_app/programs/server/node_modules/fibers/future.js:280
throw(ex);
^

Error: Cannot find module './driver/base’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/built_app/programs/server/npm/node_modules/meteor/ddp-serve
r/node_modules/sockjs/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver.js
:9:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
=> Starting meteor app on port:80
/built_app/programs/server/node_modules/fibers/future.js:280
throw(ex);
^

Error: Cannot find module './driver/base’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/built_app/programs/server/npm/node_modules/meteor/ddp-serve
r/node_modules/sockjs/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver.js
:9:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
=> Starting meteor app on port:80
/built_app/programs/server/node_modules/fibers/future.js:280
throw(ex);
^

Error: Cannot find module './driver/base’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/built_app/programs/server/npm/node_modules/meteor/ddp-serve
r/node_modules/sockjs/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver.js
:9:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
=> Starting meteor app on port:80
/built_app/programs/server/node_modules/fibers/future.js:280
throw(ex);
^

Error: Cannot find module './driver/base’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/built_app/programs/server/npm/node_modules/meteor/ddp-serve
r/node_modules/sockjs/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver.js
:9:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
=> Starting meteor app on port:80
/built_app/programs/server/node_modules/fibers/future.js:280
throw(ex);
^

Error: Cannot find module './driver/base’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/built_app/programs/server/npm/node_modules/meteor/ddp-serve
r/node_modules/sockjs/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver.js
:9:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
=> Starting meteor app on port:80
/built_app/programs/server/node_modules/fibers/future.js:280
throw(ex);
^

Error: Cannot find module './driver/base’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/built_app/programs/server/npm/node_modules/meteor/ddp-serve
r/node_modules/sockjs/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver.js
:9:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
=> Starting meteor app on port:80
/built_app/programs/server/node_modules/fibers/future.js:280
throw(ex);
^

Error: Cannot find module './driver/base’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/built_app/programs/server/npm/node_modules/meteor/ddp-serve
r/node_modules/sockjs/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver.js
:9:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
=> Starting meteor app on port:80
/built_app/programs/server/node_modules/fibers/future.js:280
throw(ex);
^

Error: Cannot find module './driver/base’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/built_app/programs/server/npm/node_modules/meteor/ddp-serve
r/node_modules/sockjs/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver.js
:9:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
=> Starting meteor app on port:80
/built_app/programs/server/node_modules/fibers/future.js:280
throw(ex);
^

Error: Cannot find module './driver/base’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/built_app/programs/server/npm/node_modules/meteor/ddp-serve
r/node_modules/sockjs/node_modules/faye-websocket/node_modules/websocket-driver/lib/websocket/driver.js
:9:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)


#2

Hi,
I’ve been developing and deploying meteor apps and leading meteor development team since 2014.
Please be sure few things before running mup deploy.

  1. Update node, meteor and mup to latest version on you local machine.
  2. Config mup.js properly (plz follow mup documentation) and copy ssh key to remote server(plz make sure the server user has proper permissions ) and mention you pem path to mup.js file.
  3. run mup setup
  4. run mup deploy

Please remember mup takes care of all supporting software installation. so you need to start with a clean server. and if you use MongoDB atlas you need to mention MONGO_URL and remove folllowing from mup.js
mongo :{

}


#3

Thanks @htmllab.

This was a working and many times earlier deployed application. For some reason it stopped working recently.


#4

@raskal this is a nodejs error. There are many suggestion topic on this. I’ll suggest you to update nodejs version first. If still the error exists, you’ll need to remove node_modules folder manually and rebuild it again.


#5

hi @htmllab My meteor version is 1.4.4.2. Which version of npm/nodejs should I use?


#6

hello @raskal. First I would suggest to update your meteor and node to latest version. as there are many security update.
Anyway, for your meteor version please check the appropriate version of node here.


#7

hey @htmllab … no luck with meteor update to 1.6…

fourseven:scss fails to install and compile node-sass if i do that. this thing is really eating my head :frowning:


#8

hi @raskal , sorry to know that. please make sure fourseven:scss@4.5.4 in your .meteo/packages which is recommended by the author.


#9

This package seems to be in conflict with useraccounts:materialize …


#10

if removing useraccounts:materialize solves your problem, I would suggest not to use it or create an issue here.


#11

Oops… I cannot remove useraccounts:materialize… the problem seems to be with materialize:materialize versions… any version above 0.97.0 doesn’t work with meteor version 1.6.0… it didn’t work with meteor version 1.4.4.2 either… :frowning:


#12

It looks like you could pointed on exact problem. you can install materialize-css from npm directly and import meteor. hopefully that could solve your problem.


#13

Unfortunately that doesn’t work. The package installed from npm appears not compatible with useraccounts:materialize.