Реагирование приложения на непрерывное развертывание с github при ошибке Netlify - PullRequest
0 голосов
/ 23 апреля 2020

Я пытался развернуть мое приложение activjs / nodejs на Netlify, используя непрерывное развертывание из репозитория GitHub, но оно выдает мне этот журнал ошибок:

2:04:40 AM: Build ready to start
2:04:42 AM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774
2:04:42 AM: build-image tag: v3.3.7
2:04:42 AM: buildbot version: e2864b9f6fb42f8598086b4caa617ac9e650a222
2:04:42 AM: Fetching cached dependencies
2:04:42 AM: Failed to fetch cache, continuing with build
2:04:42 AM: Starting to prepare the repo for build
2:04:43 AM: No cached dependencies found. Cloning fresh repo
2:04:43 AM: git clone https://github.com/KelvinYelyen/devit-blog
2:04:43 AM: Preparing Git Reference refs/heads/master
2:04:44 AM: Starting build script
2:04:44 AM: Installing dependencies
2:04:45 AM: Downloading and installing node v10.20.1...
2:04:45 AM: Downloading https://nodejs.org/dist/v10.20.1/node-v10.20.1-linux-x64.tar.xz...
2:04:46 AM: 
#############
2:04:46 AM:     18.7%
2:04:46 AM: 
##############################################################
2:04:46 AM: ########## 100.0%
2:04:46 AM: Computing checksum with sha256sum
2:04:46 AM: Checksums matched!
2:04:48 AM: Now using node v10.20.1 (npm v6.14.4)
2:04:48 AM: Attempting ruby version 2.6.2, read from environment
2:04:49 AM: Using ruby version 2.6.2
2:04:50 AM: Using PHP version 5.6
2:04:50 AM: Started restoring cached go cache
2:04:50 AM: Finished restoring cached go cache
2:04:50 AM: unset GOOS;
2:04:50 AM: unset GOARCH;
2:04:50 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
2:04:50 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
2:04:50 AM: go version >&2;
2:04:50 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
2:04:50 AM: go version go1.12 linux/amd64
2:04:50 AM: Installing missing commands
2:04:50 AM: Verify run directory
2:04:50 AM: Executing user command: npm run build
2:04:50 AM: npm
2:04:50 AM:  ERR! code ENOENT
2:04:50 AM: npm ERR!
2:04:50 AM: syscall open
2:04:50 AM: npm ERR! path
2:04:50 AM:  /opt/build/repo/package.json
2:04:50 AM: npm
2:04:50 AM:  ERR!
2:04:50 AM: errno -2
2:04:50 AM: npm
2:04:50 AM:  ERR!
2:04:50 AM: enoent ENOENT: no such file or directory, open '/opt/build/repo/package.json'
2:04:50 AM: npm
2:04:50 AM: ERR! enoent
2:04:50 AM:  This is related to npm not being able to find a file.
2:04:50 AM: npm ERR!
2:04:50 AM:  enoent
2:04:50 AM: npm
2:04:50 AM: ERR! A complete log of this run can be found in:
2:04:50 AM: npm ERR!     /opt/buildhome/.npm/_logs/2020-04-23T02_04_50_510Z-debug.log
2:04:50 AM: Skipping functions preparation step: no functions directory set
2:04:50 AM: Caching artifacts
2:04:50 AM: Started saving pip cache
2:04:50 AM: Finished saving pip cache
2:04:50 AM: Started saving emacs cask dependencies
2:04:50 AM: Finished saving emacs cask dependencies
2:04:50 AM: Started saving maven dependencies
2:04:50 AM: Finished saving maven dependencies
2:04:50 AM: Started saving boot dependencies
2:04:50 AM: Finished saving boot dependencies
2:04:50 AM: Started saving go dependencies
2:04:50 AM: Finished saving go dependencies
2:04:54 AM: Error running command: Build script returned non-zero exit code: 254
2:04:54 AM: Failing build: Failed to build site
2:04:54 AM: failed during stage 'building site': Build script returned non-zero exit code: 254
2:04:54 AM: Finished processing build request in 12.217884393s

Настройки на Netlify ...

  • Команда сборки: npm Запустить сборку,
  • Publi sh Каталог: devit (реагировать на приложение) / public /

Github repo : https://github.com/KelvinYelyen/devit-blog


Заранее спасибо ...

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