Установил свежую установку на бис через:
composer require symfony/webpack-encore-pack
yarn install
Ран yarn encore dev
, что дает мне следующий вывод:
PS C: \ www \ xx> пряжа на бис dev devarn run v1.5.1 $ C: \ www \ xx \ node_modules.bin \ encore dev Запуск веб-пакета ...
ERROR Failed to compile with 52 errors 11:51:33
These dependencies were not found:
* child_process in ./node_modules/cross-spawn/index.js, ./node_modules/execa/index.js and 1 other
* fork-ts-checker-webpack-plugin in ./node_modules/@symfony/webpack-encore/lib/plugins/forked-ts-types.js
* fs in ./node_modules/@symfony/webpack-encore/lib/WebpackConfig.js, ./node_modules/@symfony/webpack-encore/lib/package-helper.js and 37 others
* module in (webpack)/lib/NormalModule.js, (webpack)/lib/node/NodeTargetPlugin.js
* net in ./node_modules/growly/lib/gntp.js, ./node_modules/node-notifier/lib/checkGrowl.js
* readline in ./node_modules/friendly-errors-webpack-plugin/src/output.js
* spdx-exceptions in ./node_modules/spdx-expression-parse/scan.js
* spdx-license-ids in ./node_modules/spdx-correct/index.js, ./node_modules/spdx-expression-parse/scan.js
* spdx-license-ids/deprecated in ./node_modules/spdx-expression-parse/scan.js
To install them, you can run: npm install --save child_process fork-ts-checker-webpack-plugin fs module net readline spdx-exceptions spdx-license-ids spdx-license-ids/deprecated
error An unexpected error occurred: "Command failed.
Exit code: 2
Command: C:\\WINDOWS\\system32\\cmd.exe
Arguments: /d /s /c C:\\www\\xx\
ode_modules\\.bin\\encore dev
Directory: C:\\www\\xx
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "C:\\www\\xx\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Также,Я попытался установить пакеты вручную, пакет spdx-license-ids/deprecated
, похоже, удален из Github.
Я пытался добавить другие пакеты с помощью:
yarn add child_process fork-ts-checker-webpack-plugin fs module net readline spdx-exceptions spdx-lice
nse-ids
Я вижу их в папке node_modules, хотя вывод показывает, что некоторые из модулей (и другие модули)не найдено.
* child_process in ./node_modules/cross-spawn/index.js, ./node_modules/execa/index.js and 2 others
* fs in ./node_modules/@symfony/webpack-encore/lib/WebpackConfig.js, ./node_modules/@symfony/webpack-encore/lib/package-helper.js and 46 others
* spdx-exceptions in ./node_modules/spdx-expression-parse/scan.js
* spdx-license-ids in ./node_modules/spdx-correct/index.js, ./node_modules/spdx-expression-parse/scan.js
* spdx-license-ids/deprecated in ./node_modules/spdx-expression-parse/scan.js
* tslint in ./node_modules/fork-ts-checker-webpack-plugin/lib/index.js
* typescript in ./node_modules/fork-ts-checker-webpack-plugin/lib/index.js, ./node_modules/fork-ts-checker-webpack-plugin/lib/CancellationToken.js and 1 other