无法运行 encore dev [英] Can't run encore dev

查看:27
本文介绍了无法运行 encore dev的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我想使用 yarn run encore dev 时出现这个错误?当我想添加 sass 时,我收到警告> sass-loader@6.0.7"有未满足的对等依赖项webpack@^2.0.0 || ^3.0.0 || ^4.0.0".但为什么 ?Symfony 4. 我不能从 github 安装这个模块 npm install --save child_process fork-ts-checker-webpack-plugin fs module net readline spdx-exceptions spdx-license-ids spdx-license-ids/deprecated

Why i have this erros when I want to use yarn run encore dev ? When I want to add sass i get warning " > sass-loader@6.0.7" 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运行 webpack ...

yarn run v1.5.1 $ c:\xampp\htdocs\dashboard\Symfony\pppp\node_modules.bin\encore dev Running webpack ...

ERROR 编译失败,出现 50 个错误 09:48:38

ERROR Failed to compile with 50 errors 09:48:38

未找到这些依赖项:

  • ./node_modules/execa/index.js 中的 child_process、./node_modules/execa/node_modules/cross-spawn/index.js 和其他 1 个
  • ./node_modules/@symfony/webpack-encore/lib/plugins/forked-ts-types.js 中的 fork-ts-checker-webpack-plugin
  • ./node_modules/@symfony/webpack-encore/lib/WebpackConfig.js、./node_modules/@symfony/webpack-encore/lib/config/parse-runtime.js 和其他 35 个文件中的 fs
  • 模块在 (webpack)/lib/NormalModule.js, (webpack)/lib/node/NodeTargetPlugin.js
  • ./node_modules/growly/lib/gntp.js、./node_modules/node-notifier/lib/checkGrowl.js 中的网络
  • ./node_modules/friendly-errors-webpack-plugin/src/output.js 中的读取行
  • ./node_modules/spdx-expression-parse/scan.js 中的 spdx 异常
  • ./node_modules/spdx-correct/index.js、./node_modules/spdx-expression-parse/scan.js 中的 spdx-license-ids
  • spdx-license-ids/./node_modules/spdx-expression-parse/scan.js 中已弃用

要安装它们,您可以运行: npm install --save child_process fork-ts-checker-webpack-plugin fs module net readline spdx-exceptions spdx-license-ids spdx-license-ids/deprecated错误 发生意外错误:命令失败.退出代码:2命令:C:\WINDOWS\system32\cmd.exe参数:/d/s/c c:\xampp\htdocs\dashboard\Symfony\pppp\ode_modules\.bin\encore dev目录:c:\xampp\htdocs\dashboard\Symfony\pppp输出:".信息 如果您认为这是一个错误,请使用c:\xampp\htdocs\dashboard\Symfony\swisscar\yarn-error.log"中提供的信息打开错误报告.信息访问 https://yarnpkg.com/en/docs/cli/run有关此命令的文档.

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.

推荐答案

我怀疑你现在已经解决了这个问题,但如果不是问题的解决方案在于阅读错误消息.首先,'yarn run encore dev' 抱怨您的应用程序所依赖的某些库所需的某些依赖项在您的节点安装中丢失.

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.

这篇关于无法运行 encore dev的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆