From 1909018dbdd57588a480b9d69753cbbd6a78093d Mon Sep 17 00:00:00 2001 From: itsccn Date: Thu, 4 Jul 2019 14:38:31 +0800 Subject: [PATCH 1/2] bump: update @vue/cli-plugin-eslint version (#2327) FIx cannot find module '.../node_modules/eslint/lib/api.js/package.json' bug,see https://github.com/vuejs/vue-cli/issues/4231. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a57d8c89..9942fbac 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "@babel/core": "7.0.0", "@babel/register": "7.0.0", "@vue/cli-plugin-babel": "3.5.3", - "@vue/cli-plugin-eslint": "3.5.1", + "@vue/cli-plugin-eslint": "^3.9.1", "@vue/cli-plugin-unit-jest": "3.5.3", "@vue/cli-service": "3.5.3", "@vue/test-utils": "1.0.0-beta.29", From c8039a5ce3d065eb7e1972d76cf9c57d487124bb Mon Sep 17 00:00:00 2001 From: Pan Date: Thu, 4 Jul 2019 16:41:44 +0800 Subject: [PATCH 2/2] chore: allow dynamic set port --- vue.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 4a5cd438..7b8f3a5d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,10 +7,13 @@ function resolve(dir) { } const name = defaultSettings.title || 'vue Element Admin' // page title + // If your port is set to 80, // use administrator privileges to execute the command line. // For example, Mac: sudo npm run -const port = 9527 // dev port +// You can change the port by the following method: +// port = 9527 npm run dev OR npm run dev --port = 9527 +const port = process.env.port || process.env.npm_config_port || 9527 // dev port // All configuration item explanations can be find in https://cli.vuejs.org/config/ module.exports = {