Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7886683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:22:50+00:00 2026-06-03T05:22:50+00:00

I’m starting to develop with node.j,I meet an issue regarding the using of the

  • 0

I’m starting to develop with node.j,I meet an issue regarding the using of the module ‘formidable’.

I have this error:

Error: Cannot find module ‘formidable’

Here is the module list installed using ‘npm ls installed’ :

├─┬ express@2.5.9 
│ ├── connect@1.8.7 
│ ├── mime@1.2.4 
│ ├── mkdirp@0.3.0 
│ └── qs@0.4.2 
├── formidable@1.0.9 
├─┬ node-inspector@0.1.10 
│ ├── paperboy@0.0.3 
│ └─┬ socket.io@0.8.7 
│   ├── policyfile@0.0.4 
│   ├── redis@0.6.7 
│   └─┬ socket.io-client@0.8.7 
│     ├── uglify-js@1.0.6 
│     ├── websocket-client@1.0.0 
│     └── xmlhttprequest@1.2.2 
├─┬ npm@1.1.21 
│ ├── abbrev@1.0.3 
│ ├── archy@0.0.2 
│ ├── block-stream@0.0.5 
│ ├── chownr@0.0.1 
│ ├── fstream@0.1.18 
│ ├─┬ fstream-npm@0.0.6 
│ │ └── fstream-ignore@0.0.5 
│ ├── graceful-fs@1.1.8 
│ ├── inherits@1.0.0 
│ ├── ini@1.0.2 
│ ├── lru-cache@1.0.5 
│ ├── minimatch@0.2.2 
│ ├── mkdirp@0.3.0 
│ ├─┬ node-gyp@0.4.1 
│ │ ├── ansi@0.0.4 
│ │ └── glob@3.1.9 
│ ├── node-uuid@1.3.3 
│ ├── nopt@1.0.10 
│ ├── proto-list@1.0.0 
│ ├── read@0.0.2 
│ ├── request@2.9.153 
│ ├── rimraf@2.0.1 
│ ├── semver@1.0.13 
│ ├── slide@1.1.3 
│ ├── tar@0.1.13 
│ ├── uid-number@0.0.3 
│ └── which@1.0.5 
└─┬ socket.io@0.9.6 
  ├── policyfile@0.0.4 
  ├── redis@0.6.7 
  └─┬ socket.io-client@0.9.6 
    ├─┬ active-x-obfuscator@0.0.1 
    │ └── zeparser@0.0.5 
    ├── uglify-js@1.2.5 
    ├─┬ ws@0.4.14 
    │ ├── commander@0.5.2 
    │ └── options@0.0.3 
    └── xmlhttprequest@1.2.2 

I add that it is the only module who generate this error.

Also, I don’t really understand the way are encapsulated some module, it appears that npm is installing the module directly in the directory I’m using the module installation command, and I notice that formidable has been installed in the express/connect/ module on its first installation.

Can you give me more information about the module installation tree.
Thank for your replies

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:22:51+00:00Added an answer on June 3, 2026 at 5:22 am

    To understand module resolution, have a look at the Modules documentation, especially Loading from node_modules Folders.

    For example, if the file at '/home/ry/projects/foo.js' called require('bar.js'), then node would look in the following locations, in this order:

    • /home/ry/projects/node_modules/bar.js
    • /home/ry/node_modules/bar.js
    • /home/node_modules/bar.js
    • /node_modules/bar.js

    NPM takes advantage of this by installing modules into:

    ./node_modules/{module}
    

    So, when you use npm install formidable, it will create and install the module into:

    ./node_modules/formidable
    

    But, this means that only scripts within the current directory, including sub-directories, will succeed in using require('formidable'):

    ./foo.js
    ./lib/bar.js
    ./src/baz.js
    ./src/sub/qux.js
    

    You can however install modules as "global," but you have to explicitly ask for it with -g or --global:

    npm install -g formidable
    

    Then, any script on the system should be able to require('formidable').


    As for the tree output, you current have 5 installed modules available from the current directory:

    • express
    • formidable
    • node-inspector
    • npm
    • socket.io

    Everything else in the tree is a list of these modules’ dependencies, and their dependencies, etc., but only these 5 are available for require(...) within your scripts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have thousands of HTML files to process using Groovy/Java and I need to
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.