zoukankan      html  css  js  c++  java
  • Error: Cannot find module 'webpack'错误解决

    $ npm install webpack -g
     
    $ npm install webpack-cli -g
    全局安装webpack
    
    $ npm run dev
     
    Error: Cannot find module 'webpack'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
        at Function.Module._load (internal/modules/cjs/loader.js:506:25)
        at Module.require (internal/modules/cjs/loader.js:636:17)
        at require (E:webpack
    ode_modulesv8-compile-cachev8-compile-cache.js:159:20)
        at Object.<anonymous> (E:webpack
    ode_moduleswebpack-cliinconvert-argv.js:7:24)
        at Module._compile (E:webpack
    ode_modulesv8-compile-cachev8-compile-cache.js:178:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
        at Module.load (internal/modules/cjs/loader.js:598:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
        at Function.Module._load (internal/modules/cjs/loader.js:529:3)
        at Module.require (internal/modules/cjs/loader.js:636:17)
        at require (internal/modules/cjs/helpers.js:20:18)
        at yargs.parse (E:webpack
    ode_moduleswebpack-cliincli.js:241:14)
        at Object.parse (E:webpack
    ode_modulesyargsyargs.js:567:18)
        at E:webpack
    ode_moduleswebpack-cliincli.js:219:8
        at Object.<anonymous> (E:webpack
    ode_moduleswebpack-cliincli.js:538:3)
        at Module._compile (internal/modules/cjs/loader.js:688:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
        at Module.load (internal/modules/cjs/loader.js:598:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
        at Function.Module._load (internal/modules/cjs/loader.js:529:3)
        at Module.require (internal/modules/cjs/loader.js:636:17)
        at require (internal/modules/cjs/helpers.js:20:18)
        at module.exports.filename (C:UsersjinruAppDataRoaming
    pm
    ode_moduleswebpack-cli
    ode_modulesimport-localindex.js:16:66)
        at C:UsersjinruAppDataRoaming
    pm
    ode_moduleswebpack-cliincli.js:13:6
        at Object.<anonymous> (C:UsersjinruAppDataRoaming
    pm
    ode_moduleswebpack-cliincli.js:538:3)
        at Module._compile (internal/modules/cjs/loader.js:688:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
        at Module.load (internal/modules/cjs/loader.js:598:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    解决方法
    
    $ npm link webpack
    ---------------------
    

      

  • 相关阅读:
    QPushbutton样式
    qt调动DLL
    QLabel设置行间距
    Qt 5.2.1 applications (32 bit) in CentOS (64 bit with gcc 4.8.2)
    qt设置阴影效果
    ubuntu命令
    How to configure NFS on Linux
    gsoap生成onvif c++源码
    QUrl乱码问题
    QTableWidget自适应标题(铺满、可调节)
  • 原文地址:https://www.cnblogs.com/wujindong/p/10984496.html
Copyright © 2011-2022 走看看