metaplex-foundation / umi

A Solana Framework for JS Clients.
https://umi.typedoc.metaplex.com
MIT License
168 stars 50 forks source link

NPM package: @metaplex-foundation/mpl-token-metadata not found #116 #117

Closed MihaiSandor closed 10 months ago

MihaiSandor commented 10 months ago

NodeJS Version: v21.5.0 NPM Version: 10.2.4 Package Name: @metaplex-foundation/mpl-token-metadata Package Version: 3.1.2 Command: npm install --save @metaplex-foundation/mpl-token-metadata Command output:


npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: mint@0.0.1
npm ERR! Found: @metaplex-foundation/umi@0.9.0
npm ERR! node_modules/@metaplex-foundation/umi
npm ERR!   @metaplex-foundation/umi@"^0.9.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @metaplex-foundation/umi@"^0.8.2" from @metaplex-foundation/mpl-token-metadata@3.1.2
npm ERR! node_modules/@metaplex-foundation/mpl-token-metadata
npm ERR!   @metaplex-foundation/mpl-token-metadata@"*" 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! 
npm ERR! For a full report see:
npm ERR! /Users/mihaisandor/.npm/_logs/2024-01-19T18_45_41_386Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/mihaisandor/.npm/_logs/2024-01-19T18_45_41_386Z-debug-0.log

Debug Logs: cat /Users/mihaisandor/.npm/_logs/2024-01-19T18_45_41_386Z-debug-0.log

0 verbose cli /opt/homebrew/Cellar/node/21.5.0/bin/node /opt/homebrew/bin/npm
1 info using npm@10.2.4
2 info using node@v21.5.0
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 0ms
5 timing config:load:file:/opt/homebrew/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/Users/mihaisandor/Desktop/projects/github.com/project1/.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:/Users/mihaisandor/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/opt/homebrew/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 0ms
16 timing config:load Completed in 4ms
17 timing npm:load:configload Completed in 4ms
18 timing config:load:flatten Completed in 1ms
19 timing npm:load:mkdirpcache Completed in 0ms
20 timing npm:load:mkdirplogs Completed in 0ms
21 verbose title npm install @metaplex-foundation/mpl-token-metadata
22 verbose argv "install" "@metaplex-foundation/mpl-token-metadata"
23 timing npm:load:setTitle Completed in 3ms
24 timing npm:load:display Completed in 0ms
25 verbose logfile logs-max:10 dir:/Users/mihaisandor/.npm/_logs/2024-01-19T18_45_41_386Z-
26 verbose logfile /Users/mihaisandor/.npm/_logs/2024-01-19T18_45_41_386Z-debug-0.log
27 timing npm:load:logFile Completed in 4ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 18ms
31 timing arborist:ctor Completed in 1ms
32 silly logfile start cleaning logs, removing 1 files
33 silly logfile done cleaning log files
34 timing idealTree:init Completed in 154ms
35 timing idealTree:userRequests Completed in 1ms
36 silly idealTree buildDeps
37 silly fetch manifest @metaplex-foundation/mpl-token-metadata@*
38 timing arborist:ctor Completed in 0ms
39 http fetch GET 200 https://registry.npmjs.org/@metaplex-foundation%2fmpl-token-metadata 100ms (cache hit)
40 silly fetch manifest @metaplex-foundation/umi@^0.9.0
41 http fetch GET 200 https://registry.npmjs.org/@metaplex-foundation%2fumi 2ms (cache hit)
42 silly fetch manifest @metaplex-foundation/umi@^0.8.2
43 timing idealTree Completed in 262ms
44 timing command:install Completed in 268ms
45 verbose stack Error: unable to resolve dependency tree
45 verbose stack     at #failPeerConflict (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1376:25)
45 verbose stack     at #loadPeerSet (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1342:33)
45 verbose stack     at async #buildDepStep (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:917:11)
45 verbose stack     at async Arborist.buildIdealTree (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:196:7)
45 verbose stack     at async Promise.all (index 1)
45 verbose stack     at async Arborist.reify (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:159:5)
45 verbose stack     at async Install.exec (/opt/homebrew/lib/node_modules/npm/lib/commands/install.js:152:5)
45 verbose stack     at async module.exports (/opt/homebrew/lib/node_modules/npm/lib/cli-entry.js:61:5)
46 verbose cwd /Users/mihaisandor/Desktop/projects/github.com/project1
47 verbose Darwin 23.2.0
48 verbose node v21.5.0
49 verbose npm  v10.2.4
50 error code ERESOLVE
51 error ERESOLVE unable to resolve dependency tree
52 error
53 error While resolving: mint@0.0.1
53 error Found: @metaplex-foundation/umi@0.9.0
53 error node_modules/@metaplex-foundation/umi
53 error   @metaplex-foundation/umi@"^0.9.0" from the root project
53 error
53 error Could not resolve dependency:
53 error peer @metaplex-foundation/umi@"^0.8.2" from @metaplex-foundation/mpl-token-metadata@3.1.2
53 error node_modules/@metaplex-foundation/mpl-token-metadata
53 error   @metaplex-foundation/mpl-token-metadata@"*" from the root project
53 error
53 error Fix the upstream dependency conflict, or retry
53 error this command with --force or --legacy-peer-deps
53 error to accept an incorrect (and potentially broken) dependency resolution.
54 error
54 error
54 error For a full report see:
54 error /Users/mihaisandor/.npm/_logs/2024-01-19T18_45_41_386Z-eresolve-report.txt
55 verbose exit 1
56 timing npm Completed in 348ms
57 verbose unfinished npm timer reify 1705689941465
58 verbose unfinished npm timer reify:loadTrees 1705689941470
59 verbose unfinished npm timer idealTree:buildDeps 1705689941625
60 verbose unfinished npm timer idealTree:#root 1705689941625
61 verbose code 1
lorisleiva commented 10 months ago

Marking as duplicate as the cause is the same as #116.