Home>

Ubuntu 16.4
Rails 6.0.3.4

I get an error when compiling webpacker.

$rails webpacker: compile
Compiling ...
Compilation failed:
yarn run v1.22.5
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command "webpack" not found.

After $rails s, there is an error in the top screen display in the browser.
]

I've been googled a lot, but I can't solve it.
Please someone give me some advice.

  • Answer # 1

    I couldn't get an answer, so I will close it.

  • Answer # 2

    error Command "webpack" not found.

    The error message is as follows. Please install Webpack.