会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
前端小白加油
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2021年7月16日
axios对请求进行拦截时报错:Cannot read property 'cancelToken' of undefined
摘要: 错误截图: 错误原因: 在使用axios的拦截器时,没有添加返回值 return config 解决方法: 在请求拦截器中添加 return config
阅读全文
posted @ 2021-07-16 17:28 前端小白加油
阅读(264)
评论(0)
推荐(0)
2021年7月14日
更新node.js遇到错误:npm ERR! notsup Unsupported platform for n@7.3.0: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
摘要: 错误截图: PS D:\WEB前端\案例\vue_shop> npm install -g n npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for n@7.3.0: wanted {"os":"!win32","ar
阅读全文
posted @ 2021-07-14 14:00 前端小白加油
阅读(4191)
评论(0)
推荐(0)
2021年7月13日
无法将“git”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确
摘要: 在终端或者node.js运行git相关命令时遇到的错误: 解决方法: 1.找到你电脑上的git安装中bin的路径,如:C:\Users\XXX\Git\Git\bin;同时,找到git安装路径中git-core的位置,如:C:\Users\XXX\Git\Git\libexec\git-core;
阅读全文
posted @ 2021-07-13 23:32 前端小白加油
阅读(16951)
评论(0)
推荐(0)
webpack打包处理vue组件报错:Error: Cannot find module 'vue-loader/lib/plugin'
摘要: 错误截图: 错误原因: 可能是下载的vue-loader的版本太高导致的,我下载的版本是v16.0.1的版本。 解决方案: 百度看到一篇文章说下载^15.7.0版本可能可行,就报着试一下的心态重新下载15.7.0,居然成功了,感谢强大的网友。 下载完成之后的lib文件夹情况如下: 从截图可以看到多了
阅读全文
posted @ 2021-07-13 14:09 前端小白加油
阅读(7052)
评论(0)
推荐(1)
配置vue组件加载器后,打包后出现该错误:Error: Cannot find module 'webpack/lib/RuleSet' (未解决,仅作记录)
摘要: 待续。。。
阅读全文
posted @ 2021-07-13 12:20 前端小白加油
阅读(2674)
评论(0)
推荐(0)
2021年7月12日
node.js安装node-sass报错:npm ERR! Failed at the node-sass@6.0.1 postinstall script. npm ERR! node-sass@6.0.1 postinstall: `node scripts/build.js`
摘要: 环境: node: v10.13.0npm: 6.4.1win10: 64位 安装的是最新版node-sass 时报错如下: 图中划横线是关键性错误提示.百度了的答案都是千篇一律解决不了问题。 试过网上说的修改sass安装源,使用命令:npm config set sass_binary_site=
阅读全文
posted @ 2021-07-12 23:21 前端小白加油
阅读(5575)
评论(0)
推荐(0)
2021年7月11日
关于组件命名规范以及不规范遇到的控制台报错信息:did you register the component correctly? For recursive components, make sure to provide the "name" option.
摘要: 一、组件命名: 组件命名方式目前我所知道的总共有两种,一种是驼峰命名式写法:emailTest,另一种是短横线写法:email-test。 前者只能在模板中使用,后者只能在模板中使用也能在vue实例控制的区域使用。 <!-- vm实例控制的区域 --> <div id="app"> <!-- 主容器
阅读全文
posted @ 2021-07-11 00:04 前端小白加油
阅读(2135)
评论(0)
推荐(0)
2021年7月10日
webpack打包项目报错:You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
摘要: 错误截图: 错误原因:根据金山词霸翻译如下: ”您可能需要适当的加载程序来处理此文件类型,当前没有配置加载器来处理此文件“ 大致意思是程序在打包过程中会去webpack.config.js文件中查找相关css加载器,因为找到所以就报错了。 解决方法: 1.下载相关插件 style-loader和cs
阅读全文
posted @ 2021-07-10 20:21 前端小白加油
阅读(55361)
评论(0)
推荐(0)
配置自动webpack自动打包后运行run npm dev报错:Error: Cannot find module 'webpack-cli/bin/config-yargs'
摘要: 下载安装自动打包工具webpack-dev-server: PS D:\WEB前端\案例\前端工程化:ES6模块化和webpack打包\webpack_study> npm install webpack-dev-server -D npm WARN deprecated chokidar@2.1.
阅读全文
posted @ 2021-07-10 17:24 前端小白加油
阅读(752)
评论(0)
推荐(0)
2021年7月9日
node.js 运行app.js服务器的时候报错:Error: Cannot find module 'express'
摘要: 完整错误提示: 错误分析:这句警告意思是module文件夹中没有express框架相关依赖包。 解决方案:只需要运行命令自行安装express依赖包即可。 PS D:\WEB前端\案例\前端工程化:ES6模块化和webpack打包\webpack_study> npm install express
阅读全文
posted @ 2021-07-09 22:11 前端小白加油
阅读(2028)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告