insidesherpa / JPMC-tech-task-1-PY3

50 stars 448 forks source link

npm install error #228

Open Omarkh01 opened 2 years ago

Omarkh01 commented 2 years ago

In the setup of the 2nd task, when I try npm install before npm start I'm having this error. Could not find solution on the internet. Please help me!

Error Code:

`npm WARN deprecated puppeteer@1.20.0: Version no longer supported. Upgrade to @latest

bufferutil@3.0.5 install C:\Users\omar_\JPMC-tech-task-2-PY3\node_modules\bufferutil prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=11.0.0 runtime=node arch=x64 platform=win32)

C:\Users\omar_\JPMC-tech-task-2-PY3\node_modules\bufferutil>if not defined npm_config_nodegyp (node "C:\Users\omar\AppData\Roaming\nvm\v11.0.0\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\nodemodules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\omar\AppData\Roaming\nvm\v11.0.0\node_modules\npm\nodemodules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Users\omar\AppData\Local\Programs\Python\Python310\python.EXE -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: Missing parentheses in call to 'print'. Did you mean print(...)? gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:289:12) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at maybeClose (internal/child_process.js:962:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) gyp ERR! System WindowsNT 10.0.22000 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\omar\AppData\Roaming\nvm\v11.0.0\node_modules\npm\nodemodules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\omar\JPMC-tech-task-2-PY3\node_modules\bufferutil gyp ERR! node -v v11.0.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bufferutil@3.0.5 install: prebuild-install || node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bufferutil@3.0.5 install 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\omar_\AppData\Roaming\npm-cache_logs\2022-04-06T21_44_43_279Z-debug.log`