question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install as dev dependency

See original GitHub issue

Our 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
adelszcommented, Jun 9, 2020

Yes, TS is a prod peer dependency atm. This is planned to be fixed in #91.

0reactions
maxpaincommented, Jun 9, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found