Почему ошибка Python выдается случайно при развертывании приложения ReactJS на страницах GitHub, обслуживающих пользовательский домен? - PullRequest
0 голосов
/ 05 апреля 2019

Я создал свое портфолио локально, и когда я попытался использовать свой собственный домен (страницы GH), все основы этого видео и учебника: https://facebook.github.io/create-react-app/docs/deployment https://www.youtube.com/watch?v=1Y-PqBH-htk

Я получилэта ошибка при запуске трассировки стека npm install - после того, как я не смог понять, почему я получил эту ошибку npm run deploy, связанную с Python3.

Моя локальная сборка на localhost: 3001 работает.

GitHub репозиторий того, что я здесь нажал: https://github.com/erinjerri/erinjerri.github.io

Журнал ошибок здесь после запуска npm install --timing

node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for fsevents@1.2.4 and node@11.3.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /Users/erinjerri/anaconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:978:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:395:11)
gyp ERR! stack at Socket.emit (events.js:182:13)
gyp ERR! stack at Pipe._handle.close (net.js:616:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/erinjerri/Documents/GitHub/erin19/rosy/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/erinjerri/Documents/GitHub/erin19/rosy/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /Users/erinjerri/Documents/GitHub/erin19/rosy/node_modules/fsevents
gyp ERR! node -v v11.3.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/erinjerri/Documents/GitHub/erin19/rosy/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node --module_name=fse --module_path=/Users/erinjerri/Documents/GitHub/erin19/rosy/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/erinjerri/Documents/GitHub/erin19/rosy/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:978:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
node-pre-gyp ERR! System Darwin 18.2.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/erinjerri/Documents/GitHub/erin19/rosy/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/erinjerri/Documents/GitHub/erin19/rosy/node_modules/fsevents
node-pre-gyp ERR! node -v v11.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/erinjerri/Documents/GitHub/erin19/rosy/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node --module_name=fse --module_path=/Users/erinjerri/Documents/GitHub/erin19/rosy/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)
npm timing action:install Completed in 1628ms
npm timing action:postinstall Completed in 1ms
npm timing stage:executeActions Completed in 2792ms
npm timing stage:rollbackFailedOptional Completed in 190ms
npm timing stage:runTopLevelLifecycles Completed in 16313ms
npm WARN react-icofont@0.0.6 requires a peer of react@^15.5.4 but none is installed. You must install peer dependencies yourself.
npm WARN ts-pnp@1.0.1 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 install: node install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

audited 40033 packages in 18.254s
found 72 vulnerabilities (63 low, 9 moderate)
run npm audit fix to fix them, or npm audit for details
npm timing npm Completed in 18904ms

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/erinjerri/.npm/_logs/2019-04-05T14_27_53_242Z-debug.log`
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...