Skip to content

npm warning when running rake assets:precompile #221

Answered by mattbrictson
jameshibbard asked this question in Q&A
Discussion options

You must be logged in to vote

I am pretty certain this is something vite_ruby is doing. You can see here that it is explicitly setting the NPM_CONFIG_PRODUCTION env variable. I think that is what leads to the deprecation warning.

ENV['NPM_CONFIG_PRODUCTION'] = 'false'

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@jameshibbard
Comment options

Comment options

You must be logged in to vote
1 reply
@ElMassimo
Comment options

Answer selected by ElMassimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug: pending triage Something doesn't seem to be working, but hasn't been verified
3 participants
Converted from issue

This discussion was converted from issue #220 on June 21, 2022 01:00.