Node-theseus is not able to read package.json

19 views
Skip to first unread message

Ash S

unread,
Oct 12, 2015, 2:35:51 AM10/12/15
to Theseus Discuss
Hi, 

When I run node index.js, my app runs fine. When I try node-theseus index.js, my app run's into this:

Possibly unhandled Error: Cannot find module 'package.json'

    at Function.Module._resolveFilename (module.js:338:15)

    at Function.Module._load (module.js:280:25)

    at Function.m._load (/Users/assundar/Documents/workspace/projectGO/node_modules/request-local/lib/patch.js:32:34)

    at Module.require (module.js:364:17)

    at require (module.js:380:17)

    at lookup (/Users/assundar/Documents/workspace/projectGO/merchantsignupnodeweb/node_modules/servicecore/node_modules/callermodule/lib/index.js:40:16)

    at callermodule (/Users/assundar/Documents/workspace/projectGO/merchantsignupnodeweb/node_modules/servicecore/node_modules/callermodule/lib/index.js:7:12)

    at Function.objutil.mixin.create (/Users/assundar/Documents/workspace/projectGO/merchantsignupnodeweb/node_modules/servicecore/lib/index.js:116:75)

    at eval (eval at createTracer (/Users/assundar/.nvm/v0.10.38/lib/node_modules/node-theseus/node-theseus.js:170:14), <anonymous>:1041:27)

    at Object.<anonymous> (/Users/assundar/Documents/workspace/projectGO/merchantsignupnodeweb/controllers/obs/obsv2Helper.js:40:262)



Why is this happening?? The package.json file is clearly there or else node index.js would fail.

Reply all
Reply to author
Forward
0 new messages