Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run tool - fs-extra not found #149

Open
daveshirman opened this issue May 19, 2020 · 2 comments
Open

Unable to run tool - fs-extra not found #149

daveshirman opened this issue May 19, 2020 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@daveshirman
Copy link

Describe the bug

internal/modules/cjs/loader.js:979
  throw err;
  ^

Error: Cannot find module 'fs-extra'
Require stack:
- /Users/daveshirman/Downloads/image-res-generator-master/src/core/fs-manager.js
- /Users/daveshirman/Downloads/image-res-generator-master/src/index.js
- /Users/daveshirman/Downloads/image-res-generator-master/bin/image-res-generator
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:976:15)
    at Function.Module._load (internal/modules/cjs/loader.js:859:27)
    at Module.require (internal/modules/cjs/loader.js:1036:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/daveshirman/Downloads/image-res-generator-master/src/core/fs-manager.js:2:12)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Module.require (internal/modules/cjs/loader.js:1036:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/daveshirman/Downloads/image-res-generator-master/src/core/fs-manager.js',
    '/Users/daveshirman/Downloads/image-res-generator-master/src/index.js',
    '/Users/daveshirman/Downloads/image-res-generator-master/bin/image-res-generator'
  ]
}

To Reproduce
Try to run tool at command line on macOS with no options.

Expected behaviour
Tool should run without error

Desktop (please complete the following information):

  • OS: macOS 10.14.6 Mojave
@sebinbenjamin
Copy link
Owner

Sorry for the trouble. Since this is an npm project (with a dependency on the fs-extra package), you would need to run npm install on the project directory after installing Node.js. I believe that should fix the error you are facing.

I'll update the docs and try to setup executables for Windows, Linux and OsX soon.

@daveshirman
Copy link
Author

No need to apologise. Thanks for the reply and explanation.

@sebinbenjamin sebinbenjamin added the documentation Improvements or additions to documentation label May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants