Rake assets:precompile ERROR

When I ran NODE_ENV=production bundle exec rake assets:precompile It gave me an error. It said:

Rake Aborted!
Command failed with status (1): [cd client && npm run build:client…]

Can someone help me with that? I tried so hard but I couldn’t fix it.
Thanks!

Make sure you are running the command from application root
try

RAILS_ENV=production NODE_ENV=production bundle exec rake assets:precompile

Hey, I’ve tried that before but it didn’t work.
Thanks for helping tho.

In Ubuntu 16.0.4, I had to put line-breaks in the command.

export NODE_ENV=production
bundle exec rake assets:precompile

From memory, then I just ran the commands:
cd client
npm run build:client