AlbericoD / overwolf-modern-react-boilerplate

OMRB is a free and open source opinionated boilerplate based on React that helps developers create fast, modular and modern overwolf app.
https://www.npmjs.com/package/cra-template-overwolf-typescript-redux
MIT License
55 stars 16 forks source link

Failed to build #177

Closed samsitGit closed 1 year ago

samsitGit commented 1 year ago

When trying to run the command: npx create-react-app my-app --template overwolf-typescript-redux I got the following errors.

image

Here are the last few lines of the log:

40806 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
40807 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
40808 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
40808 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
40808 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
40808 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
40809 verbose stack Error: sqlite3@4.2.0 install: `node-pre-gyp install --fallback-to-build`
40809 verbose stack Exit status 1
40809 verbose stack     at EventEmitter.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
40809 verbose stack     at EventEmitter.emit (events.js:315:20)
40809 verbose stack     at ChildProcess.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
40809 verbose stack     at ChildProcess.emit (events.js:315:20)
40809 verbose stack     at maybeClose (internal/child_process.js:1048:16)
40809 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
40810 verbose pkgid sqlite3@4.2.0
40811 verbose cwd F:\Zcess Developing\overwolf\my-app
40812 verbose Windows_NT 10.0.18363
40813 verbose argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
40814 verbose node v14.16.0
40815 verbose npm  v6.14.11
40816 error code ELIFECYCLE
40817 error errno 1
40818 error sqlite3@4.2.0 install: `node-pre-gyp install --fallback-to-build`
40818 error Exit status 1
40819 error Failed at the sqlite3@4.2.0 install script.
40819 error This is probably not a problem with npm. There is likely additional logging output above.
40820 verbose exit [ 1, true ]

To reproduce it, simply run the command in VSC. Does anyone know how I may resolve the issue?

samsitGit commented 1 year ago

Solved, the issue was old node version.