Reputation: 55
Why i have this erros when I want to use yarn run encore dev ? When I want to add sass i get warning " > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0". But why ? Symfony 4. I cant install from github this modules npm install --save child_process fork-ts-checker-webpack-plugin fs module net readline spdx-exceptions spdx-license-ids spdx-license-ids/deprecated
yarn run v1.5.1 $ c:\xampp\htdocs\dashboard\Symfony\pppp\node_modules.bin\encore dev Running webpack ...
ERROR Failed to compile with 50 errors 09:48:38
These dependencies were not found:
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:\xampp\htdocs\dashboard\Symfony\pppp\ ode_modules\.bin\encore dev Directory: c:\xampp\htdocs\dashboard\Symfony\pppp Output: ". info If you think this is a bug, please open a bug report with the information provided in "c:\xampp\htdocs\dashboard\Symfony\swisscar\yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Upvotes: 2
Views: 1989
Reputation: 61
I suspect you have solved this issue by now but if not the solution to the problem lie in reading the error message. For starters the 'yarn run encore dev' is complaining that some dependencies required by some of the libraries your application depend on, are missing from your installation of node.
Upvotes: 0