Open akoeb opened 7 years ago
same problem
same problem Error: Cannot find module '../../lib/generators/app' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15) at Function.Module._load (internal/modules/cjs/loader.js:475:25) at Module.require (internal/modules/cjs/loader.js:598:17) at require (internal/modules/cjs/helpers.js:11:18)
Trying to get the generator working but it fails with said error:
I even tried to replace the local path from the error message to an absolute path like: const app = require('/usr/local/lib/node_modules/generator-spring-boot-application-from-swagger/generators/app/');
But then it fails with another error:
Are there any other modules missing?
Reproduceable when running in a docker container like:
(you will need to create a user inside the docker container because yeoman fails to run as root:
adduser test
)