fetch-nft icon indicating copy to clipboard operation
fetch-nft copied to clipboard

Error upon installation of scripts

Open tesla809 opened this issue 1 year ago β€’ 0 comments

Describe the bug

This install works fine:

npm install @solana/spl-token @solana/web3.js

However, upon running this installation script:

npm install @audius/fetch-nft

The following error occurs:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @solana/[email protected]
npm ERR! node_modules/@solana/spl-token
npm ERR!   @solana/spl-token@"^0.3.8" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @solana/spl-token@"^0.1.8" from @audius/[email protected]
npm ERR! node_modules/@audius/fetch-nft
npm ERR!   @audius/fetch-nft@"*" 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/USERNAME/.npm/_logs/2023-10-23T16_41_47_441Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/USERNAME/.npm/_logs/2023-10-23T16_41_47_441Z-debug-0.log

To Reproduce

Run the following installation commands above.

Supporting Media

Screenshot 2023-10-23 at 12 42 10 PM

Expected behavior

The @audius/fetch-nft installs normally without any issue.

Your environment

OS: MacOS 13.4 - Ventura Node version: V20.5.0 Npm version: 9.8.1 Browser name and version: Chrome 118.0.5993.70

Additional context:

  • I had to run the following instead, but not sure if this will introduce an error later on:
npm install @solana/spl-token@^0.1.8 @solana/web3.js

Used version spl-token@^0.1.8.

Then ...

@audius/fetch-nft

tesla809 avatar Oct 23 '23 16:10 tesla809