adrianvlupu / C4-Builder

This is a documentation builder. You feed it .md and .puml and it exports a site, pdf, or a markdown with navigation.
https://adrianvlupu.github.io/C4-Builder/
MIT License
562 stars 93 forks source link

fix: fix default npm install command for c4builder #87

Open drejkamikaza opened 6 months ago

drejkamikaza commented 6 months ago

Why When you try to use the default install npm i -g c4builder method for c4builder, there is an error like in the issue: https://github.com/adrianvlupu/C4-Builder/issues/50

What I've done an upgrade of packages: npm audit fix Removed the package zlib Changed the required lib to node - zlib

How to use If you want to use the fixed version then run: npm pack - you will get the c4builder-0.2.17.tgz Then you can install the package using: npm i -g c4builder-0.2.17.tgz

vpopovec commented 4 months ago

What do you mean by "Changed the required lib to node - zlib"?

When I tried to install the specific version of c4builder I received the following error:

npm warn tarball tarball data for file:c4builder-0.2.17.tgz (null) seems to be corrupted. Trying again. npm warn tarball tarball data for file:c4builder-0.2.17.tgz (null) seems to be corrupted. Trying again. npm error code ENOENT npm error syscall open npm error path /Users/viliam/c4builder-0.2.17.tgz npm error errno -2 npm error enoent ENOENT: no such file or directory, open '/Users/viliam/c4builder-0.2.17.tgz' npm error enoent This is related to npm not being able to find a file. npm error enoent

CesarCasanova commented 4 months ago

He means the c4builder for new node versions needs to be node:zlib, righ below:

Captura de pantalla 2024-05-10 a la(s) 3 39 19 p  m

And due to that , remove "zlib" dependency from package.json too.