我想在 Symfony 4 项目中使用 Webpack Encore,当我按照 Yarn https://yarnpkg.com/lang/en/docs/install/ 的安装指南进行操作时,我收到此错误消息:
# yarn install
yarn install v1.5.1
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
error @symfony/webpack-encore@0.17.1: The engine "node" is incompatible with this module.
Expected version ">=6.0.0". error An unexpected error occurred: "Found incompatible module".
info If you think this is a bug, please open a bug report with the information provided
in "/var/www/html/jobeet/yarn-error.log".
Run Code Online (Sandbox Code Playgroud)
我做了什么
我使用了这个 Docker 镜像:php:7.2-fpm
apt-get install apt-transport-https \
gnupg -y --no-install-recommends
echo "alias nodejs=node" …Run Code Online (Sandbox Code Playgroud)