Install as dev dependency
See original GitHub issueOur docker images have only production node_modules, without dev ones.
When I try to use @pgtyped/cli
as dev dependency I get runtime error Error: Cannot find module 'chalk'
. I tried to install @pgtyped/cli
as a non-dev dependency and got error Error: Cannot find module 'typescript'
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Adding dependencies to a package.json file - npm Docs
To add dependencies and devDependencies to a package.json file from the command line, you can install them in the root directory of your...
Read more >Installing Dev Dependencies with npm: Beginners' Guide
NPM installs devDependencies within the package.json file. The 'npm install' command should add all the dependencies and devDependencies ...
Read more >npm install won't install devDependencies - Stack Overflow
I don't understand why npm install doesn't install devDependencies too, but installs only dependencies. What could be the reason?
Read more >npm dependencies and devDependencies - Flavio Copes
When you install an npm package using npm install <package-name> , you are installing it as a dependency. The package is automatically listed...
Read more >The difference between dependencies and devDependencies ...
"devDependencies" are required to develop and build your app, but are not needed to run the final version that customers will use. For...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, TS is a prod peer dependency atm. This is planned to be fixed in #91.
@adelsz yes. Is it required for the production bundle? As I said we don’t install
devDependencies
when building docker images for the production environment.