Answer the question
In order to leave comments, you need to log in
Error when deploying rails app to aws?
Good day!
I am new to rails. The application uses the browserify-rails gem.
Browserify is also installed in the application root ( npm install -g browserify
).
I try to deploy to aws ( cap production deploy
), after some time it crashes with an error:
DEBUG [da7afbac] rake aborted!
DEBUG [da7afbac] BrowserifyRails::BrowserifyError: Unable to run node_modules/.bin/browserify. Ensure you have installed it with npm.
Answer the question
In order to leave comments, you need to log in
The -g flag will install the package globally instead of in the project folder. You just need to install and make the node_modules folder shareable so as not to install packages from scratch each time
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question