question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'mkdirp'

See original GitHub issue

No matter where I run nodist update from, the modules don’t seem to be installing to the right location. Tried it in good ol command prompt, as well as the git bash shell. I checked the nodist folder where I install it and there are no modules in the node_modules folder. I also tried NPM installing using the package.json in the nodist root, but all I get is Invalid password errors on random modules.

Here is an example of the error:

C:\Users\Neo\Projects>nodist update
        1 file(s) copied.
npm WARN package.json Hermes@0.0.0 No README.md file found!
        1 file(s) moved.
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/mkdirp
npm http 401 https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/mkdirp
npm http 401 https://registry.npmjs.org/rimraf
npm http 401 https://registry.npmjs.org/semver
npm http 401 https://registry.npmjs.org/request
npm http 401 https://registry.npmjs.org/mkdirp

C:\Users\Neo\Projects>nodist + v0.10.8

module.js:340
    throw err;
          ^
Error: Cannot find module 'mkdirp'
    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> (C:\Users\Neo\Projects\nodist\lib\nodist.js:27:18)
    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)

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:39 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fschwietcommented, Aug 30, 2013

It looks this may be a problem with npm 1.3.9 (confirmed thats what I have with npm --version), here are some related issues: https://github.com/isaacs/npm/issues/3825 https://github.com/isaacs/npm/issues/3820

0reactions
sureshamkcommented, Jul 3, 2017

try with yarn Its resolved this kind of issue for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot find module 'mkdirp' - node.js - Stack Overflow
Use the manual process to install mkdirp: Go to https://registry.npmjs.org/mkdirp/latest; Copy the URL value of the "tarball": key ...
Read more >
`Cannot find module 'mkdirp'` error · Issue #42 - GitHub
Ran npm install -g thrift2flow Running thrift2flow throws this error: Error: Cannot find module 'mkdirp' at Function.Module.
Read more >
mkdirp - npm
Start using mkdirp in your project by running `npm i mkdirp`. ... are actually related to something other than a missing file system...
Read more >
Npm can't find `mkdirp` - Feedback & Bug Reports
Module build failed: Error : Cannot find module 'mkdirp' at Function.Module._resolveFilename (module.js:470:15) at Function.Module.
Read more >
Can't install Elixir (node-sass) - Laracasts
I'm running it on a virtual Debian hosted on Windows, the node_modules folder is symlinked outside the shared folder in order to prevent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found