npm install live-server -g live-server npm init 在package.json中的scripts增加 "scripts": { "server": "live-server ./ --port=6666" } 启动:npm run server <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>