Vue启动如何解决构建模块问题

vue 启动Module build failed (from ./node_modules/vue-loader/lib/index.js)
Module build failed (from ./node_modules/babel-loader/lib/index.js):
ReferenceError: E:\cblhxwebtest\babel.config.js: Error while loading config - webpack is not defined
    at Object.anonymous (E:\cblhxwebtest\babel.config.js:6:9)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at readConfigJS (E:\cblhxwebtest\node_modules\@babel\core\lib\config\files\configuration.js:201:26)
    at cachedFunction (E:\cblhxwebtest\node_modules\@babel\core\lib\config\caching.js:33:19)
    at readConfig (E:\cblhxwebtest\node_modules\@babel\core\lib\config\files\configuration.js:173:56)
    at findRootConfig (E:\cblhxwebtest\node_modules\@babel\core\lib\config\files\configuration.js:148:16)
    at buildRootChain (E:\cblhxwebtest\node_modules\@babel\core\lib\config\config-chain.js:78:44)
    at loadPrivatePartialConfig (E:\cblhxwebtest\node_modules\@babel\core\lib\config\partial.js:85:55)
    at Object.loadPartialConfig (E:\cblhxwebtest\node_modules\@babel\core\lib\config\partial.js:110:18)
    at Object.anonymous (E:\cblhxwebtest\node_modules\babel-loader\lib\index.js:144:26)

 @ multi (webpack)-dev-server/client?http://192.168.2.186:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

把node_modules 删除之后,输入以下命令(一定这个顺序):

    1 npm install vue-template-compiler -D
    
    2 npm install
    
    3 npm run dev
今天的网路真是蜗牛都要爬都要累死,真的是,快要疯掉,BUG不断,网络差劲,什么都欺负开发人员,忒难
最新回复(0)
/jishuW8QKTAq7UCgs7epRZzP0nl5IsEPUGigjbcifyAPXUcY_3D8