npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! reactjs@0.1.0 postbuild: react-snap
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reactjs@0.1.0 postbuild 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! C:\Users\BUNKER\AppData\Roaming\npm-cache_logs\2020-06-12T01_25_51_467Z-debug.log
<- This is the log error ->
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build'
1 verbose cli ]
2 info using npm@6.14.5
3 info using node@v12.16.3
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle reactjs@0.1.0~prebuild: reactjs@0.1.0
6 info lifecycle reactjs@0.1.0~build: reactjs@0.1.0
7 verbose lifecycle reactjs@0.1.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle reactjs@0.1.0~build: PATH: C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\xampp\htdocs\notariareyes\node_modules.bin;C:\Python38\Scripts\;C:\Python38\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0_191\bin;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Rational\common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Users\BUNKER\AppData\Local\Microsoft\WindowsApps;C:\Users\BUNKER\AppData\Local\atom\bin;C:\Users\BUNKER\AppData\Local\Microsoft\WindowsApps;;C:\Users\BUNKER\AppData\Roaming\Composer\vendor\bin;C:\Users\BUNKER\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\BUNKER\AppData\Roaming\npm;C:\Program Files\heroku\bin
9 verbose lifecycle reactjs@0.1.0~build: CWD: C:\xampp\htdocs\notariareyes
10 silly lifecycle reactjs@0.1.0~build: Args: [ '/d /s /c', 'react-scripts build' ]
11 silly lifecycle reactjs@0.1.0~build: Returned: code: 0 signal: null
12 info lifecycle reactjs@0.1.0~postbuild: reactjs@0.1.0
13 verbose lifecycle reactjs@0.1.0~postbuild: unsafe-perm in lifecycle true
14 verbose lifecycle reactjs@0.1.0~postbuild: PATH: C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\xampp\htdocs\notariareyes\node_modules.bin;C:\Python38\Scripts\;C:\Python38\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0_191\bin;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Rational\common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Users\BUNKER\AppData\Local\Microsoft\WindowsApps;C:\Users\BUNKER\AppData\Local\atom\bin;C:\Users\BUNKER\AppData\Local\Microsoft\WindowsApps;;C:\Users\BUNKER\AppData\Roaming\Composer\vendor\bin;C:\Users\BUNKER\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\BUNKER\AppData\Roaming\npm;C:\Program Files\heroku\bin
15 verbose lifecycle reactjs@0.1.0~postbuild: CWD: C:\xampp\htdocs\notariareyes
16 silly lifecycle reactjs@0.1.0~postbuild: Args: [ '/d /s /c', 'react-snap' ]
17 silly lifecycle reactjs@0.1.0~postbuild: Returned: code: 1 signal: null
18 info lifecycle reactjs@0.1.0~postbuild: Failed to exec postbuild script
19 verbose stack Error: reactjs@0.1.0 postbuild: react-snap
19 verbose stack Exit status 1
19 verbose stack at EventEmitter. (C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
19 verbose stack at EventEmitter.emit (events.js:310:20)
19 verbose stack at ChildProcess. (C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
19 verbose stack at ChildProcess.emit (events.js:310:20)
19 verbose stack at maybeClose (internal/child_process.js:1021:16)
19 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
20 verbose pkgid reactjs@0.1.0
21 verbose cwd C:\xampp\htdocs\notariareyes
22 verbose Windows_NT 10.0.18362
23 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "build"
24 verbose node v12.16.3
25 verbose npm v6.14.5
26 error code ELIFECYCLE
27 error errno 1
28 error reactjs@0.1.0 postbuild: react-snap
28 error Exit status 1
29 error Failed at the reactjs@0.1.0 postbuild script.
29 error This is probably not a problem with npm. There is likely additional logging output above.
30 verbose exit [ 1, true ]
/ I hope your help /
I cannot upload the project because it contains private company information but I show you all the settings and errors I made and passed.
<- This is the console error ->
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! reactjs@0.1.0 postbuild:
react-snap
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the reactjs@0.1.0 postbuild 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! C:\Users\BUNKER\AppData\Roaming\npm-cache_logs\2020-06-12T01_25_51_467Z-debug.log
<- This is the log error ->
0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build' 1 verbose cli ] 2 info using npm@6.14.5 3 info using node@v12.16.3 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle reactjs@0.1.0~prebuild: reactjs@0.1.0 6 info lifecycle reactjs@0.1.0~build: reactjs@0.1.0 7 verbose lifecycle reactjs@0.1.0~build: unsafe-perm in lifecycle true 8 verbose lifecycle reactjs@0.1.0~build: PATH: C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\xampp\htdocs\notariareyes\node_modules.bin;C:\Python38\Scripts\;C:\Python38\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0_191\bin;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Rational\common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Users\BUNKER\AppData\Local\Microsoft\WindowsApps;C:\Users\BUNKER\AppData\Local\atom\bin;C:\Users\BUNKER\AppData\Local\Microsoft\WindowsApps;;C:\Users\BUNKER\AppData\Roaming\Composer\vendor\bin;C:\Users\BUNKER\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\BUNKER\AppData\Roaming\npm;C:\Program Files\heroku\bin 9 verbose lifecycle reactjs@0.1.0~build: CWD: C:\xampp\htdocs\notariareyes 10 silly lifecycle reactjs@0.1.0~build: Args: [ '/d /s /c', 'react-scripts build' ] 11 silly lifecycle reactjs@0.1.0~build: Returned: code: 0 signal: null 12 info lifecycle reactjs@0.1.0~postbuild: reactjs@0.1.0 13 verbose lifecycle reactjs@0.1.0~postbuild: unsafe-perm in lifecycle true 14 verbose lifecycle reactjs@0.1.0~postbuild: PATH: C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\xampp\htdocs\notariareyes\node_modules.bin;C:\Python38\Scripts\;C:\Python38\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0_191\bin;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Rational\common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Users\BUNKER\AppData\Local\Microsoft\WindowsApps;C:\Users\BUNKER\AppData\Local\atom\bin;C:\Users\BUNKER\AppData\Local\Microsoft\WindowsApps;;C:\Users\BUNKER\AppData\Roaming\Composer\vendor\bin;C:\Users\BUNKER\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\BUNKER\AppData\Roaming\npm;C:\Program Files\heroku\bin 15 verbose lifecycle reactjs@0.1.0~postbuild: CWD: C:\xampp\htdocs\notariareyes 16 silly lifecycle reactjs@0.1.0~postbuild: Args: [ '/d /s /c', 'react-snap' ] 17 silly lifecycle reactjs@0.1.0~postbuild: Returned: code: 1 signal: null 18 info lifecycle reactjs@0.1.0~postbuild: Failed to exec postbuild script 19 verbose stack Error: reactjs@0.1.0 postbuild: (C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
19 verbose stack at EventEmitter.emit (events.js:310:20)
19 verbose stack at ChildProcess. (C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
19 verbose stack at ChildProcess.emit (events.js:310:20)
19 verbose stack at maybeClose (internal/child_process.js:1021:16)
19 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
20 verbose pkgid reactjs@0.1.0
21 verbose cwd C:\xampp\htdocs\notariareyes
22 verbose Windows_NT 10.0.18362
23 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\BUNKER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "build"
24 verbose node v12.16.3
25 verbose npm v6.14.5
26 error code ELIFECYCLE
27 error errno 1
28 error reactjs@0.1.0 postbuild:
react-snap
19 verbose stack Exit status 1 19 verbose stack at EventEmitter.react-snap
28 error Exit status 1 29 error Failed at the reactjs@0.1.0 postbuild script. 29 error This is probably not a problem with npm. There is likely additional logging output above. 30 verbose exit [ 1, true ]<- This is the package.json ->
"dependencies": { "@testing-library/jest-dom": "5.8.0", "@testing-library/react": "10.0.4", "@testing-library/user-event": "10.3.5", "bootstrap": "4.5.0", "firebase": "^7.14.5", "leaflet": "^1.6.0", "react": "16.13.1", "react-bootstrap": "1.0.1", "react-dom": "16.13.1", "react-helmet": "6.0.0", "react-leaflet": "^2.7.0", "react-reveal": "^1.2.2", "react-router-dom": "5.2.0", "react-scripts": "3.4.1", "react-snap": "^1.23.0" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "postbuild": "react-snap" },
<- This is the Index.js ->
import React from "react"; import { hydrate, render } from "react-dom"; import "./index.css"; import "bootstrap/dist/css/bootstrap.min.css";
import "./icons/fontello/css/fontello.css"; import App from "./App"; import * as serviceWorker from "./serviceWorker";
const rootElement = document.getElementById("__next"); if (rootElement.hasChildNodes()) { hydrate( , rootElement);
} else {
render( , rootElement);
}
serviceWorker.unregister();
/ I hope your help / I cannot upload the project because it contains private company information but I show you all the settings and errors I made and passed.