-
报错:‘npm’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
解决方法:确保下载node.js以后给电脑和webstorm分别配置坏境。 -
‘vue-cli-service’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
解决方法:
更新node.js版本:npm i -g n --force -
Refused to apply style from ‘http://localhost:63342/static/css/reset.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
解决方法:引用路径或者书写错误
把
改为 -
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
解决方法:将config文件夹里面的index.js中的assetsPublicPath的值修改 为“./”。 -
GET http://static//css//reset.css net::ERR_NAME_NOT_RESOLVED
解决方法:卸载谷歌浏览器,重新安装。 -
终端进入打开下层目录:cd 文件名
-
- v-else used on element
without corresponding v-if.
解决方法:v-if和v-else或v-else-if之间不能添加其他元素。
- v-else used on element
-
Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.
原因:组件模板应该只包含一个根元素
做Vue项目的bug
最新推荐文章于 2023-08-20 10:59:53 发布