angular2-image-gallery icon indicating copy to clipboard operation
angular2-image-gallery copied to clipboard

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

Open DalalShimlani opened this issue 6 years ago • 1 comments

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: [] }

DalalShimlani avatar Jan 06 '20 09:01 DalalShimlani

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

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

LeanderCoevoet avatar Jan 07 '20 07:01 LeanderCoevoet

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 avatar Sep 12 '22 19:09 BenjaminBrandmeier

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

BenjaminBrandmeier avatar Sep 14 '22 19:09 BenjaminBrandmeier