• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

To install it, you can run: npm install --save

武飞扬头像
橘猫敲代码
帮助1

报错信息如下: 

  1.  
    ERROR Failed to compile with 1 errors 下午11:14:39
  2.  
     
  3.  
    This dependency was not found:
  4.  
     
  5.  
    * !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true
  6.  
    ,"id":"data-v-3957de9e","scoped":true,"hasInlineConfig":false}!less-loader?{"sourceMap":true}!../../../node_modules/vue-
  7.  
    loader/lib/selector?type=styles&index=0!./Test.vue in ./src/view/Test/Test.vue
  8.  
     
  9.  
    To install it, you can run: npm install --save !!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vu
  10.  
    e-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-3957de9e","scoped":true,"hasInlineConfig":false}!less-loader?
  11.  
    {"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Test.vue

学新通

因为代码是直接复制粘贴过来的

解决办法:简单粗暴 删除style中的<style lang="less">中的lang="less" 发现可以运行,其实报错信息主要是说自己没有安装依赖,直接npm把显示报错的内容安装下就好了

npm install node-sass --save
npm install sass-loader --save
npm install scss --save
npm install scss-loader --save 

针对我这个报错信息

npm install --save less less-loader@5

安装了淘宝镜像的可以使用cnpm 

因为默认是下载最新版本 针对于这个less-loader 如果使用高版本可能会报错所以我们下载5.0.0版本
@5即指定版本

以此参考 其他报错信息  问题解决

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgaffik
系列文章
更多 icon
同类精品
更多 icon
继续加载