node.js - import with require that works fine on windows but not on ubuntu -


here file tree :

> appointment/     >     db/ >         db.js >     appointment.js 

and in appointment.js made :

require( './../appointment/db/db' ); //init database 

it works on windows on ubuntu 16.04 have error cannot find module './../appointment/db/db'

if have idea.

regards , thanks

as said alexander ./db/db solution work fine on ubuntu & windows/


Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

java - ConcurrentModificationException upon committing transaction with Hibernate -