Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install (npm & yarn) #536

Open
fabpico opened this issue Feb 17, 2023 · 2 comments
Open

Unable to install (npm & yarn) #536

fabpico opened this issue Feb 17, 2023 · 2 comments

Comments

@fabpico
Copy link

fabpico commented Feb 17, 2023

Version

v4.24.2

Description

When running npm install:

npm ERR! code ERESOLVE                                   
npm ERR! ERESOLVE unable to resolve dependency tree      
npm ERR! 
npm ERR! While resolving: react-jinke-music-player@4.24.2
npm ERR! Found: webpack@5.36.2
npm ERR! node_modules/webpack
npm ERR!   dev webpack@"^5.36.2" from the root project   
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^4.0.0" from esbuild-webpack-plugin@1.1.0
npm ERR! node_modules/esbuild-webpack-plugin
npm ERR!   dev esbuild-webpack-plugin@"^1.1.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\User\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Local\npm-cache\_logs\2023-02-17T22_12_23_898Z-debug-0.log

When running yarn:

..
[4/4] Building fresh packages...
[-/6] ⠈ waiting...
[2/6] ⠈ iltorb
[3/6] ⠈ esbuild
[-/6] ⠈ waiting...
error C:\Users\User\Projects\react-music-player\node_modules\iltorb: Command failed.
Exit code: 1
Command: node ./scripts/install.js || node-gyp rebuild
Arguments:
Directory: C:\Users\User\Projects\react-music-player\node_modules\iltorb
Output:
info npm cache directory missing, creating it...
info looking for cached prebuild @ C:\Users\User\AppData\Roaming\npm-cache\_prebuilds\68a94b-iltorb-v2.4.5-node-v93-win32-x64.tar.gz
http request GET https://github.com/nstepien/iltorb/releases/download/v2.4.5/iltorb-v2.4.5-node-v93-win32-x64.tar.gz
http 404 https://github.com/nstepien/iltorb/releases/download/v2.4.5/iltorb-v2.4.5-node-v93-win32-x64.tar.gz
WARN install No prebuilt binaries found (target=16.13.1 runtime=node arch=x64 libc= platform=win32)

C:\Users\User\Projects\react-music-player\node_modules\iltorb>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node ""
 rebuild )
gyp info it worked if it ends with ok
gyp info using node-gyp@8.3.0
gyp info using node@16.13.1 | win32 | x64
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe
gyp ERR! find Python - "C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\User\AppData\Local\Programs\Python\Python39-32\python.exe
gyp ERR! find Python - "C:\Users\User\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\User\AppData\Local\Programs\Python\Python38\python.exe
gyp ERR! find Python - "C:\Users\User\AppData\Local\Programs\Python\Python38\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\User\AppData\Local\Programs\Python\Python38-32\python.exe
gyp ERR! find Python - "C:\Users\User\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\User\AppData\Local\Programs\Python\Python37\python.exe
gyp ERR! find Python - "C:\Users\User\AppData\Local\Programs\Python\Python37\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe
gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\User\AppData\Local\Programs\Python\Python37-32\python.exe
gyp ERR! find Python - "C:\Users\User\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\User\AppData\Local\Programs\Python\Python36\python.exe
gyp ERR! find Python - "C:\Users\User\AppData\Local\Programs\Python\Python36\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe
gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\User\AppData\Local\Programs\Python\Python36-32\python.exe
gyp ERR! find Python - "C:\Users\User\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if the py launcher can be used to find Python 3
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! stack     at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:294:16)
gyp ERR! stack     at exithandler (node:child_process:404:5)
gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:416:5)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
gyp ERR! stack     at onErrorNT (node:internal/child_process:477:16)
gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
gyp ERR! System Windows_NT 10.0.19044
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\User\Projects\react-music-player\node_modules\iltorb

Expected Behavior

Installation of packages should pass.

Current Behavior

Installation of packages does not pass.

System information

NodeJs v16.13.1
Yarn v1.22.17
Windows 10 Pro

@Menghini
Copy link

I am also having this same issue.

@Prasundas99
Copy link

Create a file named .npmrc and write this in it

legacy-peer-deps=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants