node.js - npm run dev報錯
問題描述
請問各位高手這是神馬情況?
問題解答
回答1:我也遇到過,用cnpm 解決的
回答2:看一下你的package.json厘米有沒有配置scripts。舉個我實際用的例子。https://github.com/anchengjia...
{ 'name': 'blog-fe', 'version': '2.1.0', 'description': '用vue重構(gòu)整個博客', 'main': 'src/app.js', 'scripts': { 'dev': 'webpack-dev-server --hot --devtool --config ./config/app.webpack.config.js --content-base ./ --host 0.0.0.0 --inline', 'deploy': 'webpack -p --config ./config/app.webpack.config.js', 'libs': 'webpack --config ./config/libs.webpack.config.js -p', 'list': 'node ./config/list.js', 'test': 'node test' }, 'author': 'anchengjian@gmail.com', 'license': 'ISC', 'dependencies': { 'highlight.js': '^9.5.0', 'marked': '^0.3.5', 'vue': '^1.0.25', 'vue-router': '^0.7.13', 'whatwg-fetch': '^1.0.0' }, 'devDependencies': { 'autoprefixer-loader': '^3.2.0', 'babel-core': '^6.7.6', 'babel-eslint': '^6.0.4', 'babel-loader': '^6.2.4', 'babel-plugin-transform-runtime': '^6.15.0', 'babel-preset-es2015': '^6.6.0', 'babel-preset-stage-2': '^6.17.0', 'css-loader': '^0.23.1', 'eslint': '^2.10.2', 'eslint-loader': '^1.3.0', 'extract-text-webpack-plugin': '^1.0.1', 'file-loader': '^0.8.5', 'html-webpack-plugin': '^2.16.0', 'node-sass': '^3.4.2', 'raw-loader': '^0.5.1', 'sass-loader': '^3.2.0', 'style-loader': '^0.13.1', 'url-loader': '^0.5.7', 'vue-hot-reload-api': '^1.3.2', 'vue-html-loader': '^1.2.2', 'vue-loader': '^8.5.2', 'vue-style-loader': '^1.0.0', 'webpack': '^1.13.0', 'webpack-dev-server': '^1.14.1' }}
相關(guān)文章:
1. mysql數(shù)據(jù)庫做關(guān)聯(lián)一般用id還是用戶名2. linux運維 - python遠程控制windows如何實現(xiàn)3. thinkPHP5中獲取數(shù)據(jù)庫數(shù)據(jù)后默認選中下拉框的值,傳遞到后臺消失不見。有圖有代碼,希望有人幫忙4. python小白 關(guān)于類里面的方法獲取變量失敗的問題5. python - 如何對列表中的列表進行頻率統(tǒng)計?6. javascript - 如何用最快的速度C#或Python開發(fā)一個桌面應(yīng)用程序來訪問我的網(wǎng)站?7. Python2中code.co_kwonlyargcount的等效寫法8. django - Python error: [Errno 99] Cannot assign requested address9. python小白,關(guān)于函數(shù)問題10. 求救一下,用新版的phpstudy,數(shù)據(jù)庫過段時間會消失是什么情況?
