A
A
Absolutely_Noob2019-09-12 18:34:10
Ruby on Rails
Absolutely_Noob, 2019-09-12 18:34:10

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.

All files are located at the address indicated in the error, everything seems to be normal.
Why if browserify is installed I still get this kind of error? Maybe I installed it incorrectly somehow, or could there be other reasons?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zaporozhchenko Oleg, 2019-09-12
@c3gdlk

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 question

Ask a Question

731 491 924 answers to any question