Ошибка npm: [prerender-spa-plugin] Невозможно отрендерить все маршруты - PullRequest
0 голосов
/ 23 марта 2019

npm run serve работает.
, но, npm run build показывает [prerender-spa-plugin] Невозможно отобразить все маршруты!сообщения об ошибках.

Я пытался удалить node_modules и package-lock.json, затем npm cache clean -f наконец npm install, но это все равно не работает.

Ниже приведен файл debug.log

1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'bui
    ld' ]
2 info using npm@6.7.0
3 info using node@v11.12.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle home@0.1.0~prebuild: home@0.1.0
6 info lifecycle home@0.1.0~build: home@0.1.0
7 verbose lifecycle home@0.1.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle home@0.1.0~build: PATH: /usr/local/lib/node_modules/
    npm/node_modules/npm-lifecycle/node-gyp-bin:/home/bkshin/terrace/fronten
    d/home/node_modules/.bin:/home/bkshin/.local/bin:/usr/local/go/bin:/usr/
    local/bin:/usr/bin:/home/bkshin/bin:/usr/local/sbin:/usr/sbin
9 verbose lifecycle home@0.1.0~build: CWD: /home/bkshin/terrace/frontend
    /home
10 silly lifecycle home@0.1.0~build: Args: [ '-c', 'vue-cli-service buil
    d' ]
11 silly lifecycle home@0.1.0~build: Returned: code: 1  signal: null
12 info lifecycle home@0.1.0~build: Failed to exec build script
13 verbose stack Error: home@0.1.0 build: `vue-cli-service build`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_mo
    dules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:197:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_mo
    dules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:197:13)
13 verbose stack     at maybeClose (internal/child_process.js:988:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/ch
    ild_process.js:265:5)
14 verbose pkgid home@0.1.0
15 verbose cwd /home/bkshin/terrace/frontend/home
16 verbose Linux 3.10.0-862.el7.x86_64
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
18 verbose node v11.12.0
19 verbose npm  v6.7.0
20 error code ELIFECYCLE
2019-03-23T15_00_09_923Z-debug.log 

, пожалуйста, помогите

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...