Boa Noite ,
Estou tentando fazer o deploy de uma aplicação React através do Git Remote.
Não estou enviando o node_modules para forçar a compilação e gerar as dependencias, mas mesmo assim sem sucesso. Desta forma nao chegou a gerar a node_modules.
log NPM:
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’ ]
2 info using npm@3.10.10
3 info using node@v6.17.1
4 verbose config Skipping project config: /usr/src/app/.npmrc. (matches userconfig)
5 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
6 info lifecycle integra-pdv@0.1.0~prestart: integra-pdv@0.1.0
7 silly lifecycle integra-pdv@0.1.0~prestart: no script for prestart, continuing
8 info lifecycle integra-pdv@0.1.0~start: integra-pdv@0.1.0
9 verbose lifecycle integra-pdv@0.1.0~start: unsafe-perm in lifecycle true
10 verbose lifecycle integra-pdv@0.1.0~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/src/app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
11 verbose lifecycle integra-pdv@0.1.0~start: CWD: /usr/src/app
12 silly lifecycle integra-pdv@0.1.0~start: Args: [ ‘-c’, ‘react-scripts start’ ]
13 info lifecycle integra-pdv@0.1.0~start: Failed to exec start script
14 verbose stack Error: integra-pdv@0.1.0 start: react-scripts start
14 verbose stack spawn ENOENT
14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:33:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:920:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
15 verbose pkgid integra-pdv@0.1.0
16 verbose cwd /usr/src/app
17 error Linux 4.4.0-174-generic
18 error argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
19 error node v6.17.1
20 error npm v3.10.10
21 error file sh
22 error code ELIFECYCLE
23 error errno ENOENT
24 error syscall spawn
25 error integra-pdv@0.1.0 start: react-scripts start
25 error spawn ENOENT
26 error Failed at the integra-pdv@0.1.0 start script ‘react-scripts start’.
26 error Make sure you have the latest version of node.js and npm installed.
26 error If you do, this is most likely a problem with the integra-pdv package,
26 error not with npm itself.
26 error Tell the author that this fails on your system:
26 error react-scripts start
26 error You can get information on how to open an issue for this project with:
26 error npm bugs integra-pdv
26 error Or if that isn’t available, you can get their info via:
26 error npm owner ls integra-pdv
26 error There is likely additional logging output above.
27 verbose exit [ 1, true ]
Package:
{
“name”: “integra-pdv”,
“version”: “0.1.0”,
“private”: true,
“dependencies”: {
“@testing-library/jest-dom”: “^4.2.4”,
“@testing-library/react”: “^9.3.2”,
“@testing-library/user-event”: “^7.1.2”,
“@unform/core”: “^2.1.3”,
“@unform/web”: “^2.1.3”,
“axios”: “^0.19.2”,
“bootstrap”: “^4.5.0”,
“font-awesome”: “^4.7.0”,
“formik”: “^2.1.4”,
“history”: “^5.0.0”,
“node-sass”: “^4.14.1”,
“react”: “^16.13.1”,
“react-bootstrap”: “^1.0.1”,
“react-dom”: “^16.13.1”,
“react-router-dom”: “^5.2.0”,
“react-scripts”: “3.4.1”,
“react-toastify”: “^6.0.8”
},
“scripts”: {
“start”: “react-scripts start”,
“build”: “react-scripts build”,
“test”: “react-scripts test”,
“eject”: “react-scripts eject”
},
“eslintConfig”: {
“extends”: “react-app”
},
“browserslist”: {
“production”: [
“>0.2%”,
“not dead”,
“not op_mini all”
],
“development”: [
“last 1 chrome version”,
“last 1 firefox version”,
“last 1 safari version”
]
}
}