0

I want to deploy and interact with a NFT solana program.

As recommanded by the documentation I am using this code https://github.com/solana-developers/program-examples/blob/main/tokens/nft-minter/native/

I am on WSL and when I try to install the js packages @solana/spl-token @solana/web3.js I have these errors:

npm install --save @solana/spl-token @solana/web3.js  
npm ERR! code EUNSUPPORTEDPROTOCOL  
npm ERR! Unsupported URL Type "workspace:": workspace:*

When I use yarn I have these errors:

yarn add @solana/spl-token @solana/web3.js
➤ YN0000: · Yarn 4.1.1
➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: @solana/fast-stable-stringify@workspace:*: Workspace not found (@solana/fast-stable-stringify@workspace:*)

When I use pnpm

 pnpm install
 WARN  GET https://registry.npmjs.org/borsh error (ECONNRESET). Will retry in 10 seconds. 2 retries left.
Downloading [email protected]: 11.62 MB/11.62 MB, done
 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In : "@solana/fast-stable-stringify@workspace:*" is in the dependencies but no package named "@solana/fast-stable-stringify" is present in the workspace

This error happened while installing the dependencies of @solana/[email protected]
1
  • Could you share your package.json file
    – C.OG
    Commented Apr 18 at 11:00

1 Answer 1

0

This was a bug reverted with https://github.com/solana-labs/solana-web3.js/pull/2509, so be sure to use 1.91.6 at least

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.