Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

cannot run a node.js example

cannot run a node.js example

Problem

I am trying to run a pre developed example in node.js environment. But i keep on getting the following error:
Cannot find module '/build/default/validation'

Am I missing some module installation from npm here...? I have installed all the other modules like socket-io, websocket, websocket-server, websocket-clien, etc.

-Parag

Problem courtesy of: Parag Saoji

Solution

Check the package.json file for all Required Modules. Run npm install and npm update to automatically install all required modules and update them.

Usually, npm modules are in a folder *node_modules*, so /build/default/... looks like some custom module that should be shipped with the example.

Solution courtesy of: Patrick

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

cannot run a node.js example

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×