npm install 报错 this command with --force, or --legacy-peer-deps

这篇具有很好参考价值的文章主要介绍了npm install 报错 this command with --force, or --legacy-peer-deps。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

npm install 报错 this command with --force, or --legacy-peer-deps

运行  npm install --legacy-peer-deps  紧接 运行 npm run serve 报错如下

npm install 报错 this command with --force, or --legacy-peer-deps

然后针对这个报错,1.删除这个 vue/compiler-sfc ,又重装,2.删除整个node_modules,又初始化,3.安装更新过 vue-loader 的版本 4.将 npm 改成 6版本再运行   等等都无效

最后再此正式思考第一个报错,

npm install 报错 this command with --force, or --legacy-peer-deps 

 尝试运行   npm install --force  再运行  npm run serve

终于成功了,😢😢😢文章来源地址https://www.toymoban.com/news/detail-506820.html

到了这里,关于npm install 报错 this command with --force, or --legacy-peer-deps的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

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

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

相关文章

  • npm install 报错 run `npm audit fix` to fix them, or `npm audit\` for details

    现象:打开项目,执行 npm install ,报错: 原因: 猜测一:依赖包存在严重漏洞,需要更新 解决方法: 1. npm audit fix : 扫描您的项目以了解漏洞,并自动安装任何与易受攻击的依赖关系兼容的更新 2. npm audit fix --force :为主要依赖关系安装半主要更新 3. npm audit :扫描您的项目

    2024年02月13日
    浏览(65)
  • 【已解决】npm安装依赖报错: npm ERR! cb() never called! npm ERR! This is an error with npm itself.

    用npm安装依赖报错: 这个问题困扰了我几天,网上答案五花八门,不过对我来说,那些方法都没有效果,记录一下我解决这个错误的步骤,如下: 删除下载好的node_modules 删除package-lock.json文件 清除npm缓存 npm cache clean npm install

    2024年02月20日
    浏览(57)
  • npm install执行报错:ENOENT: no such file or directory, open ‘XXXXX\package.json‘

    先执行 npm init -f 再安装 npm install

    2024年02月11日
    浏览(42)
  • # python 报错; pip install 报错;error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Mi

    解决问题了的话求看官老爷们给个👍哈 谢谢支持QAQ 日常总结我踩过的坑 今天是cnocr的安装 首先第一行代码 pip安装cnocr(一个ocr工具第三方库 ) pip install cnocr -i https://pypi.tuna.tsinghua.edu.cn/simple/ 报错信息在文末 需要翻老底的可以去看看 这里报出了error: Microsoft Visual C++ 14.0 o

    2024年02月02日
    浏览(59)
  • npm install 报错 The package-lock.json file was created with an old version of npm, npm WARN o

    解决方法直接看3 博主在VScode中用 npm install 命令下载包时报错,错误如下 npm版本过高,解决方法见第如下,亲测有效可以解决。 1.在vscode终端中输入如下命令行(可直接复制粘贴) 2. 然后输入 检查npm版本会显示一个低版本的 npm 的版本号。 3.然后再进行npm install 的操作就不

    2024年02月13日
    浏览(43)
  • 下载node-gyp依赖包报错:gyp ERR! find VS msvs_version not set from command line or npm config

    you need to install the lastest version of version of Visual Studio 你需要下载最新的Visual Studio 找到GitHub地址:https://github.com/nodejs/node-gyp 下载Vistual Studio链接:https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=BuildTools 不要立刻就去选择c++桌面开发,这样下载的会是Vistual Stu

    2024年02月09日
    浏览(91)
  • npm install 出现 npm ERR! command failed 解决办法

    本地使用npm install 时出现如下异常,可以看下本地是否安装过历史版本的node导致的版本冲突。 解决方案: 先将历史版本的 node 卸载,再重新安装后,再执行npm install  转自下面这篇文章 npm install 时 node-sass npm ERR command failed问题解决

    2024年02月12日
    浏览(44)
  • npm install时 node-sass npm ERR command failed问题解决

    出现错误后,找了很多方法,网上关于这个问题的解决方法也很多,尝试了两三天,最后发现了一个终极解决方案, 亲测有效!!! ,下面是链接。 npm install 时 node-sass npm ERR command failed问题解决

    2024年02月15日
    浏览(41)
  • Linux:Command ‘vim‘ not found, but can be installed with:

    这个错误提示表明您的系统中没有安装 vim 编辑器。Vim 是一款常用的文本编辑器,许多 Linux 系统默认提供了它,但有些系统可能需要单独安装。 要解决这个问题,您可以根据您使用的操作系统执行以下步骤: 对于 Ubuntu 或 Debian 系统: 打开终端。 运行以下命令以安装 vim 编

    2024年02月09日
    浏览(31)
  • ERROR command failed: npm install --loglevel error --legacy-peer-deps

    完美解决ERROR command failed: npm install --loglevel error --legacy-peer-deps 出现问题,第一步是查找问题根源。 查看日志信息,如果出现permittion字样,请尝试第一种方法:使用管理员身份运行cmd,重新构建项目。 第二种方法,卸载npm,安装低版本的npm(即nodejs),再重新构建。

    2024年02月04日
    浏览(38)

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

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

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

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

二维码1

领取红包

二维码2

领红包