日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

【问题记录】解决npm 报错This dependency was not found: A complete log of this run can be found in:

發(fā)布時(shí)間:2024/9/30 编程问答 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【问题记录】解决npm 报错This dependency was not found: A complete log of this run can be found in: 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

輸入npm run serve報(bào)錯(cuò),輸入npm install --save vue-cropper,也無(wú)法安裝,如下:


修改了:
webpack.config.js,找到module

如果只是 { test:/.js$/ , use:“babel-loader” }添加上 exclude:/node_modules/

改成:{ test:/.js$/ , use:“babel-loader”,exclude:/node_modules/ }
這樣改了之后再run serve仍然報(bào)錯(cuò)。然后:
然后輸入了:
npm install npm@latest -g
npm cache clean --force
npm i npm -g
npm install --save vue-cropper,此時(shí)再安裝已經(jīng)安裝成功了。

npm run serve


在端口啟動(dòng)了但是有報(bào)警。原因可能跟main.js里面導(dǎo)入了什么有關(guān)
現(xiàn)在的main.js:

import Vue from 'vue' import App from './App.vue' import router from './router' import './plugins/element.js' import './assets/css/global.css' //import Video from 'video.js' import 'video.js/dist/video-js.css' //Vue.prototype.$video = Video // 導(dǎo)入iconfront import './assets/font/iconfont.css' import 'element-ui/lib/theme-chalk/index.css'; //import SvgIcon from 'vue-svgicon' import VideoPlayer from 'vue-video-player' require('video.js/dist/video-js.css') require('vue-video-player/src/custom-theme.css') require('./styles/video.css') Vue.use(VideoPlayer)// 導(dǎo)入axios import axios from 'axios' import * as echarts from 'echarts' import VueCookies from 'vue-cookies' import FullCalendar from 'vue-fullcalendar' import 'default-passive-events' import VueRouter from 'vue-router'Vue.use(FullCalendar) // import axios from "axios"; Vue.prototype.$axios = axios Vue.use(VueCookies) // require('./assets/bootstrap-3.3.7-dist/css/bootstrap.min.css'); // import './assets/bootstrap-3.3.7-dist/css/bootstrap.min.css' // import './assets/bootstrap-3.3.7-dist/js/bootstrap.min.js' Vue.prototype.$echarts = echarts// 掛載axios 到Vue的原型prototype的$http Vue.prototype.$http = axios // 設(shè)置請(qǐng)求的根路徑 axios.defaults.baseURL = "http://localhost:9000/" axios.interceptors.request.use(config => {console.log(config);// 請(qǐng)求頭掛載信息config.headers.Authorization = window.sessionStorage.getItem("flag");// 在最后必須return configreturn config; }) Vue.config.productionTip = falsenew Vue({router,render: h => h(App) }).$mount('#app')

下一個(gè)問(wèn)題是:

video-player播放器的異常。

總結(jié)

以上是生活随笔為你收集整理的【问题记录】解决npm 报错This dependency was not found: A complete log of this run can be found in:的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。