Veeピット

1532 ワード

node-saas
Failed at the [email protected] postinstall script. 解決:npm uninstall node-saasを削除してからcnpm cnpm install node-sass --saveを使用
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
解決:Vue.use(xxx)の使用を忘れた
axiosエラーError:Request failed with status code 404
main.jsプラス
axios.defaults.baseURL = 'http://localhost:8081'
axios.defaults.headers.post['Content-Type'] = 'application/json';

Uncaught (in promise) TypeError: Cannot read property ‘protocol’ of undefined
削除
Vue.use(axios)

使用する
Vue.prototype.$http = axios