current position:Home>Solution to the problem that element UI admin cannot run NPM run dev

Solution to the problem that element UI admin cannot run NPM run dev

2022-01-27 01:24:48 Nanchen_ forty-two

element-ui-admin Installation method , You can check from the official website

npm Report errors :npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2017-11-20T09_43_06_459Z-debug.log

I tried to install this template before, and there were some problems , Here's to say . Many people run this when they install it npm run dev Orders can't be carried out , There is probably something wrong with your installation method

install element-ui-admin Before , There is no need to install other technology stacks ( Including scaffolding ). You can wait until the installation is successful and add again vue There are related technology stacks , This element-ui-admin Itself is a template . So find a folder directly, and then execute the following code in turn to install successfully ( Just follow the order )

#  Cloning project 
git clone

#  Enter project directory 
cd vue-element-admin

#  Installation dependency 
npm install

#  Not recommended  cnpm  install   There will be all kinds of weird bug  It can be solved by the following operations  npm  The problem of slow download speed 
npm install --registry=

#  Local development   Start project 
npm run dev

Do not use npm run serve start-up

The browser access will be opened automatically after startup  http://localhost:9527 When you see the following page, it means the operation is successful .

copyright notice
author[Nanchen_ forty-two],Please bring the original link to reprint, thank you.

Random recommended