R
Railway2y 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
Percy2y ago
Project ID: N/A
Solution
Brody
Brody2y 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
BeboQOP2y ago
I mean, railway install them automatically?
Brody
Brody2y 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
BeboQOP2y ago
Ok thanks..
Brody
Brody2y ago
no problem!
Want results from more Discord servers?
Add your server