Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
288 views
in Technique[技术] by (71.8m points)

node.js - 有没有解决此错误的方法(is there any solution for this below error)

```internal/modules/cjs/loader.js:638
   throw err;
^

    Error: Cannot find module 'webpack/bin/config-yargs'
           at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
           at Function.Module._load (internal/modules/cjs/loader.js:562:25)
           at Module.require (internal/modules/cjs/loader.js:692:17)
           at require (internal/modules/cjs/helpers.js:25:18)
           at Object.<anonymous> (C:UsersvaizmDocumentsmini-webmy-senor- 
             chat
ode_moduleswebpack-dev-serverinwebpack-dev-server.js:54:1)
           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)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! my-senor-chat@1.0.0 dev: `webpack-dev-server --inline --progress --config 
    build/webpack.dev.conf.js`        
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the my-senor-chat@1.0.0 dev script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output 
    above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:UsersvaizmAppDataRoaming
pm-cache\_logs2019-12-01T14_56_41_740Z- 
    debug.log```

i'm using vue.js and firebase in this project i get this error while doing 'npm run dev' if deploy this project it will be deployed but no page will be shown on the browser.

(我在此项目中使用vue.js和firebase在执行'npm run dev'时收到此错误,如果部署此项目将被部署,但浏览器中不会显示任何页面。)

  ask by syed vaiz translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...