kennethormandy / kennethormandy/react-fittext

Unable to install package using npm

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
73
Forks
10
PR merge metrics
No merged PRs in 30d

Description

I am using React version 18.2.0. when i try to install this package in my project, error occurs and this log is generated.
```
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@8.11.0
2 info using node@v16.15.1
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:C:\ProgramData\nvm\v16.15.1\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:\.npmrc Completed in 0ms
10 timing config:load:project Completed in 4ms
11 timing config:load:file:\.npmrc Completed in 0ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Program Files\nodejs\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 14ms
19 timing npm:load:configload Completed in 14ms
20 timing npm:load:mkdirpcache Completed in 1ms
21 timing npm:load:mkdirplogs Completed in 0ms
22 verbose title npm install @kennethormandy/react-fittext
23 verbose argv "install" "--save" "@kennethormandy/react-fittext"
24 timing npm:load:setTitle Completed in 2ms
25 timing config:load:flatten Completed in 3ms
26 timing npm:load:display Completed in 5ms
27 verbose logfile logs-max:10 dir:C:\Users\\AppData\Local\npm-cache\_logs
28 verbose logfile C:\Users\\AppData\Local\npm-cache\_logs\2022-06-22T17_15_03_980Z-debug-0.log
29 timing npm:load:logFile Completed in 7ms
30 timing npm:load:timers Completed in 0ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 30ms
33 timing arborist:ctor Completed in 1ms
34 silly logfile start cleaning logs, removing 2 files
35 silly logfile done cleaning log files
36 timing idealTree:init Completed in 801ms
37 timing idealTree:userRequests Completed in 4ms
38 silly idealTree buildDeps
39 silly fetch manifest @kennethormandy/react-fittext@*
40 timing arborist:ctor Completed in 1ms
41 http fetch GET 200 https://registry.npmjs.org/@kennethormandy%2freact-fittext 687ms (cache hit)
42 silly fetch manifest react@^18.2.0
43 http fetch GET 200 https://registry.npmjs.org/react 15ms (cache hit)
44 silly fetch manifest react@^16.x
45 timing idealTree Completed in 1532ms
46 timing command:install Completed in 1548ms
47 verbose stack Error: unable to resolve dependency tree
47 verbose stack at Arborist.[failPeerConflict] (C:\ProgramData\nvm\v16.15.1\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1428:25)
47 verbose stack at Arborist.[loadPeerSet] (C:\ProgramData\nvm\v16.15.1\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1394:34)
47 verbose stack at async Arborist.[buildDepStep] (C:\ProgramData\nvm\v16.15.1\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:976:11)
47 verbose stack at async Arborist.buildIdealTree (C:\ProgramData\nvm\v16.15.1\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:218:7)
47 verbose stack at async Promise.all (index 1)
47 verbose stack at async Arborist.reify (C:\ProgramData\nvm\v16.15.1\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:153:5)
47 verbose stack at async Install.exec (C:\ProgramData\nvm\v16.15.1\node_modules\npm\lib\commands\install.js:156:5)
47 verbose stack at async module.exports (C:\ProgramData\nvm\v16.15.1\node_modules\npm\lib\cli.js:78:5)
48 verbose cwd C:\Users\abhis\Documents\abhishek0010.github.io
49 verbose Windows_NT 10.0.22000
50 verbose node v16.15.1
51 verbose npm v8.11.0
52 error code ERESOLVE
53 error ERESOLVE unable to resolve dependency tree
54 error
55 error While resolving: @0.1.0
55 error Found: react@18.2.0
55 error node_modules/react
55 error react@"^18.2.0" from the root project
55 error
55 error Could not resolve dependency:
55 error peer react@"^16.x" from @kennethormandy/react-fittext@0.6.0
55 error node_modules/@kennethormandy/react-fittext
55 error @kennethormandy/react-fittext@"*" from the root project
55 error
55 error Fix the upstream dependency conflict, or retry
55 error this command with --force, or --legacy-peer-deps
55 error to accept an incorrect (and potentially broken) dependency resolution.
55 error
55 error See C:\Users\\AppData\Local\npm-cache\eresolve-report.txt for a full report.
56 verbose exit 1
57 timing npm Completed in 1693ms
58 verbose unfinished npm timer reify 1655918104107
59 verbose unfinished npm timer reify:loadTrees 1655918104119
60 verbose unfinished npm timer idealTree:buildDeps 1655918104927
61 verbose unfinished npm timer idealTree:#root 1655918104927
62 verbose code 1
63 error A complete log of this run can be found in:
63 error C:\Users\\AppData\Local\npm-cache\_logs\2022-06-22T17_15_03_980Z-debug-0.log
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the package dependency metadata and reproduce the reported npm install with React 18.2.0, Node 16.15.1, and npm 8.11.0. The issue is done when the package installs without the React peer-dependency conflict, or the supported React versions are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
build-system, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.