Open warlyware opened 1 year ago
also running into this issue - trying to use pnpm
and modified the documentation to
pnpm add 'https://gitpkg.now.sh/solana-labs/octane/packages/core?630a8d6afc90d2fe5aad88db2dc56c880cdbb5ad&scripts.postinstall=pnpm%20install%20--ignore-scripts%20%26%26%20pnpm%20run%20build'
but the post install hook failed as the script is hardcoded to use yarn:
Progress: resolved 1762, reused 1762, downloaded 0, added 0, done
│ Done in 3.4s
│ > @solana/octane-core@0.0.1 build MY_DIRECTORY/node_modules/@solana/octane-core
│ > yarn clean && tsc -p tsconfig.json
│ Usage Error: This project is configured to use pnpm
│ $ yarn ...
│ ELIFECYCLE Command failed with exit code 1.
Describe the bug I am attempting to install octane via the instructions documented here: https://github.com/solana-labs/octane/blob/master/docs/library.md#install I attempted using an existing repo as well as a new blank repo. I am using yarn v3.5.0.
To Reproduce Steps to reproduce the behavior:
yarn init
octane-core@
to the install command per errornode_modules
folder.Expected behavior The package should be installed in
node_modules
as expected.Screenshots
Desktop (please complete the following information):
Additional context I tested with
yarn
in an empty repo for creating this issue, however I prefer using pnpm. Until the octane library is on NPM it would be helpful to have more complete install instructions for different package managers. Ideally it would be on NPM so devs could just runpnpm add @solana-labs/octane
(or preferred package manager equivalent).