Error: Cannot find module 'webpack-cli/bin/config-yargs'

前端 未结 8 1404
渐次进展
渐次进展 2021-01-04 01:57

\'Github\' asked me to update \'webpack-dev-server\' to version 3.1.11 or higher for security reasons.

However, \'npm run dev\' will not run after the update.

<
8条回答
  •  Happy的楠姐
    2021-01-04 02:49

    This process work for me

    1 - Run your Command Invite/Terminal as Administrator

    2 - Install the Vue CLI globally with the command :

    npm install -g vue-cli
    

    3 - Create your vue project

    vue init webpack your_project_name_here
    

    4 - Goto your project directory you

    cd your_project_name_here
    

    5 - If you have vulnerabilities execute :

    npm audit fix
    

    Now you can start the web server in development mode by using npm in the following way:

    npm run dev
    

    By default it will start the server on port 8080

提交回复
热议问题