komodojp / tinyld

Simple and Performant Language detection library for NodeJS
https://komodojp.github.io/tinyld/
MIT License
415 stars 12 forks source link

File missing in the 1.3.2 release #21

Closed LinaKind closed 1 year ago

LinaKind commented 1 year ago

Unable to use the most recent release due to below error:

npm i tinyld@latest

npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path [...]/node_modules/tinyld/bin/tinyld-heavy.js npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, chmod '[...]/node_modules/tinyld/bin/tinyld-heavy.js' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

kefniark commented 1 year ago

Ho thanks, indeed something looks wrong, it indeed looks like one of the /bin script was not renamed properly.

Just to know what version of npm are you using? I just would like to reproduce the issue to be sure my fix works properly.

For me both npm & yarn have no trouble with it. They don't even show a warning

$ yarn add tinyld
yarn add v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ tinyld@1.3.2
info All dependencies
└─ tinyld@1.3.2
Done in 44.73s.
$ npm i tinyld@latest

added 1 package, and audited 2 packages in 2s

found 0 vulnerabilities
kefniark commented 1 year ago

I published https://www.npmjs.com/package/tinyld/v/1.3.3 Let me know if it solve your problem

LinaKind commented 1 year ago

That solves the problem. Thank you!