How can i install packages
Hello i’m new to railway how can i install nodeJs packages using npm on project ?
Solution:Jump to 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 locally6 Replies
Project ID:
N/A
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 locallyI mean, railway install them automatically?
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 fileOk thanks..
no problem!