報(bào)錯(cuò)描述
        
        
            我使用命令 npm run dev 啟動(dòng)項(xiàng)目 報(bào)了下面的錯(cuò)。
        
        
             'webpack-dev-server' 不是內(nèi)部或外部命令,也不是可運(yùn)行的程序
        
        
            
                > webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
            
            
                'webpack-dev-server' 不是內(nèi)部或外部命令,也不是可運(yùn)行的程序
或批處理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue@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 vue@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
            
            
                npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lara\AppData\Roaming\npm-cache\_logs\2018-06-12T09_40_42_892Z-debug.log
            
        
        
             什么環(huán)境都是好的,剛使用npm run dev 啟動(dòng)了一個(gè)前端項(xiàng)目都是好的,但是現(xiàn)在這個(gè)項(xiàng)目就不行了。
        
        
            解決步驟:
        
        
                    第一步:
        
        
                    刪除項(xiàng)目的node_modules文件夾(當(dāng)前運(yùn)行的項(xiàng)目中沒有node_modules 文件夾的直接運(yùn)行第二步)
        
        
                    第二步:
        
        
                    在項(xiàng)目目錄里運(yùn)行 npm install  命令
        
        
            
 
        
        
                     第三步:
        
        
                    在項(xiàng)目目錄里運(yùn)行npm run build 命令
        
        
              
        
        
                     第四步:
        
        
                    在項(xiàng)目目錄里運(yùn)行npm run dev 命令
        
        
             
        
        
            這樣我就可以成功運(yùn)行項(xiàng)目了。