Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Can't npm it #8

Open
GoPixel-lab opened this issue Nov 2, 2021 · 4 comments
Open

Can't npm it #8

GoPixel-lab opened this issue Nov 2, 2021 · 4 comments

Comments

@GoPixel-lab
Copy link

image

@GoPixel-lab
Copy link
Author

I tried yarn, it can success run until the last build falied as well

@RajaFaizanNazir
Copy link

RajaFaizanNazir commented Jul 28, 2022

Here is the list of commands I wrote for my help:
But make sure you upgrade the "@solana/web3.js": "^0.78.2" to "@solana/web3.js": "^1.50.1" in package.json, because it will update the cluster URL of RPC of networks including 'devnet' and 'testnet'
git clone https://github.com/solana-labs/oyster-swap
cd oyster-swap
set SWAP_PROGRAM_OWNER_FEE_ADDRESS='Your Wallet
set SWAP_HOST_FEE_ADDRESS='Your Wallet
npx browserslist@latest --update-db
sudo npm install -g serve
npm install --force @craco/craco --save
npm run build
serve -s build

@graceful-coder
Copy link

graceful-coder commented Sep 15, 2022

After following the above instructions, I got dependency issues (this is an older project) that I resolved by running npm install --legacy-peer-deps and adding SKIP_PREFLIGHT_CHECK=true to the .env file. Then you should be able to successfully npm run build and serve -s build to see the UI.

@weck25
Copy link

weck25 commented Nov 12, 2023

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
at Object.createHash (node:crypto:138:10)
at module.exports (F:\solana\oyster-swap\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (F:\solana\oyster-swap\node_modules\webpack\lib\NormalModule.js:417:16)
at F:\solana\oyster-swap\node_modules\webpack\lib\NormalModule.js:452:10
at F:\solana\oyster-swap\node_modules\webpack\lib\NormalModule.js:323:13
at F:\solana\oyster-swap\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at F:\solana\oyster-swap\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (F:\solana\oyster-swap\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at F:\solana\oyster-swap\node_modules\babel-loader\lib\index.js:59:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v20.9.0

i have error openssl when i run npm run build

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants