Cannot find module - creating a service

(Carlos Faria) #1

Hi guys,

I’m following your guides ( https://bitcore.io/guides/lemonade-stand ) and I created a service like you guys explain here: https://bitcore.io/guides/service-development but when I execute mynode > bitcored I receive this error:

module.js:327
    throw err;
    ^
Error: Cannot find module 'lemonand-stand'
    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 Function.setupServices (/mynode/node_modules/bitcore-node/lib/scaffold/start.js:56:26)
    at start (/Users/carlosfaria/mynode/node_modules/bitcore-node/lib/scaffold/start.js:203:31)
    at Object.main [as daemon] (/mynode/node_modules/bitcore-node/lib/cli/daemon.js:38:3)
    at Liftoff.<anonymous> (/.nvm/versions/node/v4.3.1/lib/node_modules/bitcore/node_modules/bitcore-node/lib/cli/bitcored.js:29:16)
    at Liftoff.<anonymous> (/.nvm/versions/node/v4.3.1/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/liftoff/index.js:196:12)
    at Liftoff.<anonymous> (/Users/carlosfaria/.nvm/versions/node/v4.3.1/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/liftoff/index.js:164:7)

Can anyone help? Thanks!

1 Like

(Braydon Fuller) #2

Did you symlink (or install) the lemonade-stand service into the node_modules directory?

0 Likes

(Carlos Faria) #3

Yes, I create a symlink, and also simple copy the ‘lemonade-stand’ service to node_modules in mynode, but didn’t work.

I miss something ?

This is a really basic question… but I no longer know what to do. Thanks for your time!

0 Likes

(Leo Wandersleb) #4

for what it’s worth, lemonand-stand looks like it has a typo. One extra “n”.

1 Like

(Carlos Faria) #5

Thanks, but I correct the typo and search for another typos. And still not found the module.

0 Likes