Issues with npm install and run

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
iany
Posts: 6
Joined: 25 Nov 2022, 11:41

02 Mar 2023, 13:52

I've just purchased and downloaded Prime Blocks for React. I presume the way to get access to the code is to download the package and run it locally? I was expecting to be able to copy the code from the https://blocks.primereact.org/ website.

When I try to download the package, install the dependencies, and run it, I get errors preventing the server from starting.

After running

Code: Select all

npm install
there are a lot of vulnerabilities with a lot of packages requiring an update:

Code: Select all

32 vulnerabilities (1 low, 1 moderate, 21 high, 9 critical)
I then run

Code: Select all

npm start
I can't get the server to run:

Code: Select all

Starting the development server...

/path/to/primeblocks-react-3.2.0/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/path/to/primeblocks-react-3.2.0/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/path/to/primeblocks-react-3.2.0/node_modules/webpack/lib/NormalModule.js:417:16)
    at /path/to/primeblocks-react-3.2.0/node_modules/webpack/lib/NormalModule.js:452:10
    at /path/to/primeblocks-react-3.2.0/node_modules/webpack/lib/NormalModule.js:323:13
    at /path/to/primeblocks-react-3.2.0/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /path/to/primeblocks-react-3.2.0/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/path/to/primeblocks-react-3.2.0/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /path/to/primeblocks-react-3.2.0/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'
}
I'm running Node 18.4.0 locally.

How can I start the development server to be able to access the code blocks?

habubey
Posts: 89
Joined: 24 Aug 2022, 13:17

08 Mar 2023, 15:03

Hi there!

Could you please restart the project once again and confirm whether the issue you reported earlier is still persisting or not? If so, we kindly request you to provide us with an update on the matter. Thank you.
Bugra Beyduz
PrimeReact Core Developer
Github profile: https://github.com/habubey

iany
Posts: 6
Joined: 25 Nov 2022, 11:41

09 Mar 2023, 12:57

Hi,

Yes it's still a problem. The only way I've been able to get around it is to roll back to an older version of Node.js (v16.13.0).

habubey
Posts: 89
Joined: 24 Aug 2022, 13:17

09 Mar 2023, 14:29

Hi there!

Very soon, we will be relocating PrimeBlocks-React form from CRA to Next.js, eliminating the need to roll back to an older version of Node.js.
Bugra Beyduz
PrimeReact Core Developer
Github profile: https://github.com/habubey

iany
Posts: 6
Joined: 25 Nov 2022, 11:41

28 Jun 2023, 15:57

Good to hear. Any idea when this will likely emerge?

Post Reply

Return to “PrimeBlocks for PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests