Cannot find module 'form-data'

662 views
Skip to first unread message

rajaseka...@gmail.com

unread,
Oct 17, 2013, 2:23:12 AM10/17/13
to nod...@googlegroups.com
Hi All,

    I have installed the form-data module using npm without any issues.However, when i imported it from my code the following error occurred.
  
    Error: Cannot find module 'form-data'
    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> (E:\Rajasekar\Nimbus\V2\Services\Node\providerv2\connectors\cloudsigma.compute\cloudsigma.compute.js:13:16)
    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)

    I have been struggling with this error for 2 days and have given up. If anyone knows what the solution may be, please help. This will be highly appreciated.

   Thanks in advance,
   Raja

greelgorke

unread,
Oct 17, 2013, 5:53:44 AM10/17/13
to nod...@googlegroups.com
do you have a package.json in the project root folder?
Reply all
Reply to author
Forward
0 new messages