Getting error when starting the app using npm start command
As per the documentation, opensea recommends switching to Node.js version 8.11 to make sure common crypto dependencies work. when I use this, react app doesn't work, it requires 10.0+ I get the following error
react-scripts start
/mydrive/opensea-js/ships-log/node_modules/terser-webpack-plugin/node_modules/p-limit/index.js:29 } catch {} ^ SyntaxError: Unexpected token { at createScript (vm.js:80:10)
when I use latest version of node v16.4.0, I get following error [email protected] start
react-scripts start
/mydrive/opensea-js/ships-log/node_modules/mini-css-extract-plugin/dist/CssModule.js:20 class CssModule extends _webpack.default.Module { ^
TypeError: Class extends value undefined is not a constructor or null at Ob
They said to use Node.js version 8.11 or higher. So the latest node will work without any errors.
I see lot of error when I switch to v 16.4.0, attaching log files in detail test.txt
npm ERR! npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28) npm ERR! npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! npm ERR! gyp ERR! System Darwin 20.5.0 npm ERR! npm ERR! gyp ERR! command "/Users/mohammed.ahmed/.nvm/versions/node/v16.4.0/bin/node" "/Users/mohammed.ahmed/.nvm/versions/node/v16.4.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! npm ERR! gyp ERR! cwd /Users/mohammed.ahmed/.npm/_cacache/tmp/git-clone-bf267b38/node_modules/sha3 npm ERR! npm ERR! gyp ERR! node -v v16.4.0 npm ERR! npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! npm ERR! gyp ERR! not ok