R
Railway17mo ago
BeboQ

How can i install packages

Hello i’m new to railway how can i install nodeJs packages using npm on project ?
Solution:
you use npm install <package name> in you local project, this both installs the packages locally and adds them to the dependency list in your package.json/package-lock.json file, so then when you go to deploy your code on railway, railway will be able to install the packages that youve previously installed locally
Jump to solution
6 Replies
Percy
Percy17mo ago
Project ID: N/A
Solution
Brody
Brody17mo ago
you use npm install <package name> in you local project, this both installs the packages locally and adds them to the dependency list in your package.json/package-lock.json file, so then when you go to deploy your code on railway, railway will be able to install the packages that youve previously installed locally
BeboQ
BeboQ17mo ago
I mean, railway install them automatically?
Brody
Brody17mo ago
thats what i said, yes as long as they are listed in the dependencies section and your package-lock.json file is in sync with your package.json file
BeboQ
BeboQ17mo ago
Ok thanks..
Brody
Brody17mo ago
no problem!
Want results from more Discord servers?
Add your server