Я только что установил целевую страницу Vue на моем Mac.Терминал в папку и был запущен "npm install" и "npm run dev", он работал просто отлично.
Но на управляемом Сервере установка npm иногда выполняется только потому, что она часто уничтожается кодом 137. Я создал поддомен для папки проекта.
Запуск запуска npm не дает мне ошибок, ноURL "subdomain.domain.legal" возвращается на пустую страницу.Главное - не заменяться ничем.Порт 8080 выдает «Веб-сайт недоступен»
Есть идеи, какие спецификации или настройки могут быть неверными на управляемом сервере?
index.js
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: 'subdomain.domain.legal', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true,
errorOverlay: true,
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
// Use Eslint Loader?
// If true, your code will be linted during bundling and
// linting errors and warnings will be shown in the console.
useEslint: true,
// If true, eslint errors and warnings will also be shown in the error overlay
// in the browser.
showEslintErrorsInOverlay: false,
/**
* Source Maps
*/
// https://webpack.js.org/configuration/devtool/#development
devtool: 'cheap-module-eval-source-map',
// If you have problems debugging vue-files in devtools,
// set this to false - it *may* help
// https://vue-loader.vuejs.org/en/options.html#cachebusting
cacheBusting: true,
cssSourceMap: true
},
ошибка после запуска npmначало (иногда)
I Your application is running here: http://subdomain.domain.legal:8080 Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! tovo_vue@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the tovo_vue@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /usr/home/user/.npm/_logs/2019-05-31T11_47_21_305Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! tovo_vue@1.0.0 start: `npm run dev`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the tovo_vue@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /usr/home/user/.npm/_logs/2019-05-31T11_47_21_313Z-debug.log
HTML-код (пустой) страницы
<html><head>
<title>Title</title>
<meta charset="utf-8">
<meta name="author" content="pixelstrap">
<meta name="description" content="xy">
<meta name="keywords" content="xy">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Fav icon -->
<link rel="shortcut icon" hre="/static/favicon.png">
<!-- Font Family-->
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet">
</head>
<body id="nav-scroller" data-spy="scroll" data-target=".navbar" data-offset="0">
<div id="app"></div>
</body></html>
free -g:
total used free shared buff/cache available
Mem: 31 7 10 0 12 22
Swap: 3 0 3
ps aux |grep node
user 1422 0.0 0.0 16712 968 pts/1 S+ 14:18 0:00 grep node