小编M4k*_*4sh的帖子

纱线安装 symfony/webpack-encore

我想在 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)

symfony yarnpkg webpack-encore symfony4

3
推荐指数
1
解决办法
4325
查看次数

标签 统计

symfony ×1

symfony4 ×1

webpack-encore ×1

yarnpkg ×1