oyster-swap icon indicating copy to clipboard operation
oyster-swap copied to clipboard

Can't npm it

Open GoPixel-lab opened this issue 3 years ago • 4 comments

image

GoPixel-lab avatar Nov 02 '21 16:11 GoPixel-lab

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

GoPixel-lab avatar Nov 02 '21 16:11 GoPixel-lab

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

RajaFaizanNazir avatar Jul 28 '22 09:07 RajaFaizanNazir

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.

graceful-coder avatar Sep 15 '22 14:09 graceful-coder

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

weck25 avatar Nov 12 '23 17:11 weck25