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

error when running this:node node_modules/angular2-image-gallery/convert.js #84

Closed
DalalShimlani opened this issue Jan 6, 2020 · 3 comments

Comments

@DalalShimlani
Copy link

when I try to run this
node node_modules/angular2-image-gallery/convert.js /asstes/
i get this

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

Error: Cannot find module '/Users/lo/my-project/node_modules/angular2-image-gallery/convert.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:17)
at Function.Module._load (internal/modules/cjs/loader.js:859:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

@LeanderCoevoet
Copy link

You need to add the following as a devDependency: gm and onecolor.
So

  "devDependencies": {
...
"gm": "^1.23.1",
"onecolor": "^3.1.0",
...
}

@BenjaminBrandmeier
Copy link
Owner

Actually I have to adjust the README. There are some additional ones to make the convert script running. But thanks for pointing out @LeanderCoevoet

@BenjaminBrandmeier
Copy link
Owner

All dependencies of the convert script are now part of the peerDependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants