SOLVED MODULE_NOT_FOUND error

drmartell

Registered
Jun 8, 2020
2
1
3
Oregon
cPanel Access Level
Website Owner
What is the likely cause of this error reflected in my partial Passenger log file below?
This results after running NPM Install from the cPanel (86.0 (build 21)) Node.js Applications Management GUI, then starting the application and visiting the URL of the deployment. cPanel is running on linux.

Code:
App 29732 output: internal/modules/cjs/loader.js:775
App 29732 output:     throw err;
App 29732 output:     ^
App 29732 output:
App 29732 output: Error: Cannot find module 'csvtojson'
App 29732 output: Require stack:
...
App 29732 output: - /opt/passenger-5.3.7-9.el7.cloudlinux/src/helper-scripts/node-loader.js
App 29732 output:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:772:15)
App 29732 output:     at Function.Module._load (internal/modules/cjs/loader.js:677:27)
App 29732 output:     at Module.require (internal/modules/cjs/loader.js:830:19)
App 29732 output:     at Module.require (/opt/passenger-5.3.7-9.el7.cloudlinux/src/helper-scripts/node-loader.js:80:25)
App 29732 output:     at require (internal/modules/cjs/helpers.js:68:18)
...
App 29732 output:     at Module._compile (internal/modules/cjs/loader.js:936:30)
App 29732 output:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
App 29732 output:     at Module.load (internal/modules/cjs/loader.js:790:32)
App 29732 output:     at Function.Module._load (internal/modules/cjs/loader.js:703:12)
App 29732 output:     at Module.require (internal/modules/cjs/loader.js:830:19)
App 29732 output:     at Module.require (/opt/passenger-5.3.7-9.el7.cloudlinux/src/helper-scripts/node-loader.js:80:25)
App 29732 output:     at require (internal/modules/cjs/helpers.js:68:18)
...
App 29732 output:     at Module._compile (internal/modules/cjs/loader.js:936:30)
App 29732 output:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10) {
code: 'MODULE_NOT_FOUND',
 
Last edited:

cPSamuelM

Technical Analyst Team Lead
Staff member
Nov 20, 2019
196
37
103
USA
cPanel Access Level
Root Administrator
Hello @drmartell

Thank you for getting back to us to confirm that you resolved the issue. I'm glad to hear that. I'll go ahead and mark this thread as Solved.

Best regards