npm install 安装出现Unexpected end of input at 1:949588
https://www.cnblogs.com/longtengfly/p/8001604.html
npm install 出现
request to https://cdn.npm.taobao.org/acorn/-/acorn-5.5.3.tgz failed, reason: getaddrinfo ENOTFOUND cdn.npm.taobao.org cdn.npm.taobao.org:443
设置
npm config set strict-ssl false
.
Mac Vue安装后找不到vue,原来是node的版本太低了,需要升级node版本
fxt:~.$ cd /usr/local/Cellar/node/11.6.0/bin/
fxt:bin ...$ vue
You are using Node v8.3.0, but this version of @vue/cli requires Node >=8.9.
Please upgrade your Node version.
net::ERR_ABORTED 404 (Not Found)
vue.config.js中配置。
module.exports = {
publicPath:'./'
}
Invalid options in vue.config.js: "baseUrl" is not allowed
使用publicPath
替代baseUrl
Vue.component注册的组件找不到的问题,需要在Vue中重新注册。
Vue.component("button-text",{
data:function(){
return {
count:0
}
},
// data:{
// count:0
// },
template:`<button @click = "count++">我显示的数据{{count}} </button>`
}
)
new Vue({el:'button-view'})