npm 报错“A complete log of this run can be found in:”解决方法

这篇具有很好参考价值的文章主要介绍了npm 报错“A complete log of this run can be found in:”解决方法。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

npm 启动项目 npm run serve/dev的时候报了个错:再次记录一下

! code ELIFECYCLE
npm ERR! errno 1
npm ERR! new@0.1.0 serve: vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the new@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Admin\AppData\Roaming\npm-cache_logs\2023-02-06T14_17_03_399Z-debug.log

a complete log of this run can be found in:,npm,node.js,前端

一, 问题原因

项目启动失败,一直报错,翻译一下,大概意思就是依赖包或者模板有问题

二,解决方法

1.需要找到node_modules把这个文件夹删掉

如下图
a complete log of this run can be found in:,npm,node.js,前端
2.然后cmd或者vscode终端再运行npm install即可,这个命令会重新安装一下依赖包,最后在执行npm run servenpm run dev就可以解决啦!

a complete log of this run can be found in:,npm,node.js,前端文章来源地址https://www.toymoban.com/news/detail-790948.html

到了这里,关于npm 报错“A complete log of this run can be found in:”解决方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

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

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

相关文章

  • 【异常】Jenkins执行前端项目Npm构建时,出现报错This dependency was not found: vue-class-component in ./node_modules/vu

    同事的代码变更,导致了在Jenkins无法执行构建 错误的原因是项目中引入了vue-class-component,但是在项目的依赖列表中,却没有找到它,因此会报如上的错误。 vue-class-component是一个用于类式Vue组件的TypeScript装饰器。 它允许您将Vue组件定义为类,这可以使您的代码更有组织性和

    2024年02月03日
    浏览(52)
  • GIT提示Another git process seems to be running in this repository

    翻译过来大概的意思就是:另一个git进程似乎正在这个存储库中运行,例如。由git commit打开的编辑器。请确保所有流程 被终止,然后重试。如果仍然失败,git进程之前可能在此存储库中崩溃:手动删除文件以继续。 1、进入项目里面的.git文件里面找到index.lock删除即可。 重新

    2024年02月13日
    浏览(220)
  • The command ‘docker‘ could not be found in this WSL 2 distro.

    The command ‘docker’ could not be found in this WSL 2 distro. 1、 在搭建openHarmony开发环境时遇到该问题。 2、分析原因 3、解决办法 第一步:在powerShell中查看wsl版本 第二步:转换低系统wsl到2 第三步:查看是否成功解决该问题

    2024年02月11日
    浏览(33)
  • ELASTICSEARCH-7.3.2报错:Failure running machine learning native code. This could be due to running

    解决方法: 打开config目录下的elasticsearch.yml,添加如下一行配置:

    2024年02月15日
    浏览(30)
  • 报错:To install it, you can run : npm install --save @api/***解决方法

    以下是报错原因: 报错信息如下 以下是解决的失败过程: 首先它告诉你让你安装如下: npm install --save @/api/tNursingStaffCirculation 如果安装成功的话,那就没事了,很明显安装会失败 报错如下: 所在位置 行:1 字符: 20 npm install --save @/api/tNursingStaffCirculation 源文本中包含无法识别的

    2024年02月11日
    浏览(50)
  • rabbitMQ登录报错user can only log in via localhost

    本地安装好rabbitmq,启动后,输入IP:port,打开登录页面,使用guest/guest登录,报错 这是由于guest账号默认只能通过localhost访问登录,如果通过IP地址访问,则会被限制; 解决办法: 找到rabbitmq安装位置,D:developrabbitMqrabbitmq_server-3.7.17ebin;打开文件rabbimq.app 将{loopback_users

    2024年02月17日
    浏览(27)
  • 解决npm install 时出现的.git can‘t be found (see https://git.io/Jc3F9)问题

    问题: 今天使用webstream npm instatll 之后报错 .git can‘t be found (see https://git.io/Jc3F9) 原因 一般来说就是你使用ws打开的文件夹位置中不是 .git 文件夹的所在的文件夹相同的位置 举个例子就是: 你的 .git 文件在路径 /a/b 而你现在用ws打开的项目在 /a/b/c 中导致的, 解决方案, 建议不要

    2024年04月25日
    浏览(22)
  • VM报错Before you can run VMware several modules must be compiled and loaded into the running kernel

    Ubuntu 20.04下启动虚拟机 VMware 时,报错: Before you can run VMware several modules must be compiled and loaded into the running kernel . 按提示点击 install 无法解决。 1 下载 vmware-host-modules 并切换到对应分支 这里如果直接执行 sudo make sudo make install 会报以下错误: 2. 编辑 vm_asm_x86.h 编辑 vmware-host

    2024年02月11日
    浏览(40)
  • npm v10.0.0 is known not to run on Node.js v12.8.0. This version of npm supports the following node

    执行命令时报错:ERROR: npm vxxx is known not to run on Node.js vxxx.  This version of npm supports the following node versions: `^18.17.0 || =20.5.0`. You can find the latest version at https://nodejs.org/. 报错说你现在的npm版本是vxxx 不支持你现在Node的版本vxxx,需要把node版本改成npm支持的版本,在node官网你可以找

    2024年02月08日
    浏览(38)
  • Linux安装VMware17报错Before you can run VMware,several modules must be compiled and……

    出现这种报错一般是vmmon和vmnet这俩模块没有经过签名认证,软件认为不安全,所以无法正常完成安装,那我们完成签名认证就行 先找到模块的位置 正常会返回两个路径, 接下来替换下面代码中后面的路径代码 注意这步要在第一步生成密钥的路径下执行 即 ls 能看到有    MOK

    2024年01月20日
    浏览(39)

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

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

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

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

二维码1

领取红包

二维码2

领红包