Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem on install with node 18.16.0 #2231

Closed
redd97 opened this issue Apr 13, 2023 · 1 comment
Closed

Problem on install with node 18.16.0 #2231

redd97 opened this issue Apr 13, 2023 · 1 comment

Comments

@redd97
Copy link

redd97 commented Apr 13, 2023

Hi everybody. I have a problem to install it with node v18.16.0
Moment when error appear https://i.imgur.com/TS8Dasp.png
Error message: Error: error:0308010C:digital envelope routines::unsupported
Error screenshot: https://i.imgur.com/LElVMCR.png

I think this error occurs because when you install the package, it does npm run build (started from prepublish scipt in package.json).
As I understand it, this bug is caused by breaking change on node >=v17, and on other hand caused from prepublish script in package.json.

So a solution would be to rename prepublish -> prepublishOnly.
Because :

  1. prepublish is deprecated
  2. when i run 'npm install`, and install dependency i don't want to do build library.

For example most popular libraries from npm (express or grunt) don't do build when i install these libraries. He provide from start folder as /lib

@akiran
Copy link
Owner

akiran commented May 23, 2023

Fixed it in #2240

@akiran akiran closed this as completed May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants