-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add support for production mode install #59
Comments
Could you be more precise about the error you have please ? Required dependencies are listed in peer dependencies cause they are required at an higher level in your application. Before to install in production mode you have to install peer deps (and framework deps too) Once peer dependencies are installed, you can install it using production. This is not a standalone package, and it is supposed to work in a pre existing environement. That means any application that already have installed nestjs core, common and the commander packages. |
Maybe I should add the install workflow in the documentation but it's something that is very common in a lot of NPM packages. During development of your app
Then during production deployment, you could install using a |
If I do /app # node dist/console.js
internal/modules/cjs/loader.js:797
throw err;
^
Error: Cannot find module 'lodash'
Require stack:
- /app/node_modules/nestjs-console/lib/scanner.js
- /app/node_modules/nestjs-console/lib/module.js
- /app/node_modules/nestjs-console/lib/bootstrap.js
- /app/node_modules/nestjs-console/lib/index.js
- /app/dist/console.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/app/node_modules/nestjs-console/lib/scanner.js:3:18)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/app/node_modules/nestjs-console/lib/scanner.js',
'/app/node_modules/nestjs-console/lib/module.js',
'/app/node_modules/nestjs-console/lib/bootstrap.js',
'/app/node_modules/nestjs-console/lib/index.js',
'/app/dist/console.js'
]
} Is it helpful? do yo need my package.json or yarn.lock? |
Ok, lodash is missing in dependencies. |
Ok, great! |
Any news about v2? |
Could you try the nestjs-console@next version from npm ? |
At the moment, the library cannot be installed in production mode (i.e. yarn install --production), cause almost all required dependencies are in devDependencies section.
The text was updated successfully, but these errors were encountered: