Open DomDumont opened 1 year ago
Oh, thanks for the report, that seems to be a problem caused by the latest update. I'll check to see whats happening there. Meanwhile please try installing svelte-navigator@3.1.6.
I cannot reproduce the error. Are you trying to install the package from git?
no, just a classic npm install
the postinstall script seems to be executed on my machine "postinstall": "is-ci || husky install", I do not know anything about npm
Yes, that seems to be what is happening, but it should not be able to happen... That script is disabled before the package is published to npm. If you look at the latest version's package.json (3.3.2), you'll see that the postinstall script is changed to _postinstall
. I have no idea whats happening there. I'll need some more information from your setup. What versions of npm and svelte navigator are you using? What are the exact steps to reproduce the error? How is you project set up? Have you tried deleting node_modules and package-lock.json and reinstalling everything again?
Here are some versions i have : Windows_NT 10.0.19044 node v16.13.2 npm v8.18.0 svelte-navigator@3.2.2
deleting node_modules and package_lock doesn't change anything. here is an edited extract of my npm log
164 info run svelte-navigator@3.2.2 postinstall node_modules/svelte-navigator is-ci || husky install
165 http fetch POST 200 871ms
166 timing auditReport:getReport Completed in 1182ms
167 silly audit report {}
168 timing auditReport:init Completed in 0ms
169 timing reify:audit Completed in 1184ms
170 info run svelte-navigator@3.2.2 postinstall { code: 1, signal: null }
171 timing reify:rollback:createSparse Completed in 111ms
172 timing reify:rollback:retireShallow Completed in 0ms
173 timing command:install Completed in 11078ms
174 verbose stack Error: command failed
174 verbose stack at ChildProcess.
On another computer I have no problem at all. It may be to my office setup ( we have a special registry where we get packages ). I will investigate with my IT team and get back to you
When i try to npm install your package I got many errors because i need is-ci and husky to be present on my machine (they are not) and even after that husky needs a git folder ( my project is not yet under a source control ). It's the first time a package asks for so many prerequisites