Error: Cannot find module './development' - node.js

I am trying to clone and run this https://github.com/martijnboland/appoints-api-node.git
After cloning and doing npm install, when I try to run it, I get the following error:
module.js:340
throw err;
^
Error: Cannot find module './development'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/appoints-api-node/config/index.js:3:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

You need to create a configuration file for the environment you are using. You can either create a development.js file manually in the config directory, or copy config/example.js to config/development.js and edit it appropriately.

Related

ATOM/apm: can't find module "npm"

In Windows 10:
C:\Users\broven>apm
module.js:340
throw err;
^
Error: Cannot find module 'npm'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (E:\Program Files (x86)\atom\app-1.8.0\resources\app\apm\lib\apm-cli.js:12:9)
at Object.<anonymous> (E:\Program Files (x86)\atom\app-1.8.0\resources\app\apm\lib\apm-cli.js:237:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Error tell me that i don't have npm , but I insatll it,and up to date.
what's the problem?
C:\Users\broven>npm
Usage: npm <command>
npm#2.15.8 D:\Program Files\nodejs\node_modules\npm

Can't find module with sqlite3 with Node on Ubuntu

I get the following error with "nodejs server.js"
Error: Cannot find module '/home/domain/mydomain.photos/node_modules/sqlite3/lib/binding/node-v11-linux-x64/node_sqlite3.node'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/relive/relive.photos/node_modules/sqlite3/lib/sqlite3.js:4:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
The problem is that in "'/home/domain/mydomain.photos/node_modules/sqlite3/lib/binding/" i do not have a node-v11-linux-x64, but rather node-v46-linux-x64.
I am using Nodejs v0.10.25 and Sqlite v3.8.2.
Any ideas?

Node JS + Express won't run, DEBUG=appname ./bin/www

I'm trying to get a node/express server running on a mac, and this command isn't running
DEBUG=ExpressApp ./bin/www
This is the error that gets thrown out:
module.js:340
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/jaysen/Desktop/ExpressApp/app.js:1:77)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
UPDATE
After re-running npm install, I just get a blank line.

Cannot run express-spdy app using NodeJS

I'm not able to run NodeJS Express-Spdy examples downloaded from GitHub.
I'm getting the below error:
C:\Program Files\nodejs\node_modules\npm\node_modules\express-spdy>node app.js
module.js:340
throw err;
^
Error: Cannot find module 'express-spdy'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\express- spdy\app.js:6:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
Please tell me how to resolve this error, as I have put express-spdy inside node_modules folder.
When I run the example using SPDY module only by placing it inside node_modules it works fine but with express-spdy module it shows above error.

OData, JayData, and node.js: Cannot find ExpressionVisitor.js

I ran npm install odata-server, but calling require('odata-server') fails with the following:
Using JayLint for code parsing
module.js:340
throw err;
^
Error: Cannot find module './Types/Expressions/Visitors/ExpressionVisitor.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/home/anewman/node_modules/odata-server/lib/jaydata/lib/index.js:28:1)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
Try to reinstall the module and check that the missing file is there. Please also check your NODE_PATH settings because the library can not find the acorn parser module under ~/node_modules/odata-server/lib/jaydata/node-modules/acorn

Resources