vue运行报错问题error Command failed with exit code 1.

这篇具有很好参考价值的文章主要介绍了vue运行报错问题error Command failed with exit code 1.。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

解决方法:治标不治本,每次运行前,先输入

$env:NODE_OPTIONS="--openssl-legacy-provider"

再运行文章来源地址https://www.toymoban.com/news/detail-509576.html

npm run dev  
yarn run v1.22.19
warning package.json: "dependencies" has dependency "script-loader" with range "0.7.2" that collides with a dependency in "devDependencies" of the same name with version "^0.7.2"
$ vue-cli-service serve --open
 INFO  Starting development server...
 10% building 2/2 modules 0 activei 「wds」: Project is running at http://localhost:9527/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\public
i 「wds」: 404s will fallback to /index.html
 10% building 2/5 modules 3 active ...\node_modules\webpack\hot\dev-server.jsError: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\@vue\cli-service\node_modules\webpack\lib\util\createHash.js:90:53)
    at NormalModule._initBuildHash (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\@vue\cli-service\node_modules\webpack\lib\NormalModule.js:401:16)
    at handleParseError (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\@vue\cli-service\node_modules\webpack\lib\NormalModule.js:449:10)
    at D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\@vue\cli-service\node_modules\webpack\lib\NormalModule.js:481:5
    at D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\@vue\cli-service\node_modules\webpack\lib\NormalModule.js:342:12
    at D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
    at D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\loader-runner\lib\LoaderRunner.js:236:3
    at runSyncOrAsync (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\loader-runner\lib\LoaderRunner.js:130:11)
    at iterateNormalLoaders (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
    at Array.<anonymous> (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
    at Storage.finished (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
    at D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
 10% building 2/6 modules 4 active ...\node_modules\webpack\hot\dev-server.jsnode:internal/crypto/hash:71
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\@vue\cli-service\node_modules\webpack\lib\util\createHash.js:90:53)
    at NormalModule._initBuildHash (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\@vue\cli-service\node_modules\webpack\lib\NormalModule.js:401:16)
    at handleParseError (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\@vue\cli-service\node_modules\webpack\lib\NormalModule.js:449:10)
    at D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\@vue\cli-service\node_modules\webpack\lib\NormalModule.js:481:5
    at D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\@vue\cli-service\node_modules\webpack\lib\NormalModule.js:342:12
    at D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at Array.<anonymous> (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
    at Storage.finished (D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
    at D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
    at D:\softdownload\google下载\crmeb_java-master\crmeb_java-master\admin\node_modules\graceful-fs\graceful-fs.js:123:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.15.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

到了这里,关于vue运行报错问题error Command failed with exit code 1.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 成功解决“assert.h”: No such file or directory error: command failed with exit code 2

    成功解决“assert.h”: No such file or directory  error: command   failed with exit code 2 目录 解决问题 解决思路 解决方法 IDE之VS:Visual Studio2022版本安装图文教程之详细攻略 fatal error C1083: 无法打开包括文件: “assert.h”: No such file or directory   error: command \\\'D:\\\\Program Files\\\\Microsoft Vis

    2024年02月11日
    浏览(91)
  • iOS 编译报错:Xcode Command PhaseScriptExecution failed with a nonzero exit code 解决方案

    iOS 报错“ Xcode Command PhaseScriptExecution failed with a nonzero exit code ” 解决方案 问题:xcode版本差异造成的不兼容。低版本xcode不兼容高版本xcode。 解决方案1: 在Xcode菜单栏选择File - Workspace Setting - Build System 选择Legacy Build System 重新运行 解决方案2: 将低版本xcode升级为最新版本,

    2024年02月13日
    浏览(41)
  • iOS Xcode版本14.2 编译成功 打包报error build: Command PhaseScriptExecution failed with a nonzero exit code

    iOS Xcode版本14.2 编译成功 打包报error build: Command PhaseScriptExecution failed with a nonzero exit code 上面是我打包报错的详细信息,我发现报错的主要是高德地图的三方库,我就删除了报错的三方库,同时删除 pods文件夹 和 .lock文件 重新pod install 之后三方库不再报错,只报错error build:

    2024年02月04日
    浏览(35)
  • brew install报错Error: No developer tools installed. Error: Command failed with exit 128: git

    先来解决第一个问题 Error: No developer tools installed. Install the Command Line Tools: xcode-select --install 然后升级一下brew,出现警告。然后再次尝试安装tree 出现如下错误: fatal: not in a git directory Error: Command failed with exit 128: git 在终端输入 Homebrew 3.6.20 fatal: detected dubious ownership in repositor

    2024年02月05日
    浏览(55)
  • XCode提示“Command PhaseScriptExecution failed with a nonzero exit code”

    许久没有遇到XCode提示错误信息了。针对这个问题,网上也有教程。我的解决办法是:查看Mac的【钥匙串】,证书列表里存在多个证书,有一对证书是相同的,并且一个是过期证书,一个是有效证书。把过期证书删除掉即可。 当然也有其他博主给的信息。附上链接,方便大家

    2024年02月12日
    浏览(35)
  • docker启动报错:Job for docker.service failed because the control process exited with error code.

    问题:docker突然启动不了,然后也用不了docker的命令,报错如下。 [root@master opt]# docker network ls Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 1.检查docker的运行状态 [root@master opt]# systemctl status docker.service ● docker.service - Docker Application Container Engine

    2024年02月16日
    浏览(58)
  • docker启动报错:Job for docker. service failed because the control process exited with error code

    启动docker报错: 1.通过命令进入/etc/docker文件目录:  2.修改文件名 3.重启动docker Job for docker.service failed because the control process exited with error code. See \\\"systemctl status docker.service\\\" and \\\"journalctl -xe\\\" for details. 通过在网上查找资料并尝试,终于找到了解决方法。 命令: cd /etc/docker  查看

    2024年02月17日
    浏览(63)
  • 关于Job for mysqld.service failed because the control process exited with error code报错解决办法

    当关闭虚拟机时,再重新打开虚拟机,执行命令systemctl start mysqld启动mysql服务时会出现以下报错:Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details. 出现上述情况是因为虚拟机在关闭时,mysql服务相关控

    2024年02月12日
    浏览(56)
  • 解决XCode错误:Command PhaseScriptExecution failed with a nonzero exit code

    XCode版本:14.3 使用模拟器或真机调试、编译等都不出错,唯独在进行Archive时,会出现以下错误: 出错时的XCode截图如下: 展开XCode左侧的项目结构目录,逐级展开“Pods” - “Target Support Files” - \\\"Pods-项目名称\\\",打开其中的“Pods-项目名称-frameworks.sh”文件: 在该文件中,找

    2024年02月11日
    浏览(44)
  • IOS编译出现Command PhaseScriptExecution failed with a nonzero exit code

    在 Github 上下载了一个用 SwiftUI 开发的仿微信Demo.用Xcode15运行报以下错误. 首先我们得找到具体的错误,这报错太抽象啦. 那我们要在哪里看到具体的报错信息呢? 通过在 Stackoverflow 上搜索发现,点击导航栏最右边的图标 选中最近的build,在右边就能看到具体详细的编译错误信

    2024年01月24日
    浏览(37)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包