Comments (7)
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
from svelte-navigator.
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 [email protected].
from svelte-navigator.
I cannot reproduce the error. Are you trying to install the package from git?
from svelte-navigator.
no, just a classic npm install
from svelte-navigator.
the postinstall script seems to be executed on my machine "postinstall": "is-ci || husky install", I do not know anything about npm
from svelte-navigator.
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?
from svelte-navigator.
Here are some versions i have :
Windows_NT 10.0.19044
node v16.13.2
npm v8.18.0
[email protected]
deleting node_modules and package_lock doesn't change anything. here is an edited extract of my npm log
164 info run [email protected] 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 [email protected] 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. (C:\Users\ddumont\AppData\Roaming\npm\node_modules\npm\node_modules@npmcli\promise-spawn\lib\index.js:63:27)
174 verbose stack at ChildProcess.emit (node:events:390:28)
174 verbose stack at maybeClose (node:internal/child_process:1064:16)
174 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
175 verbose pkgid [email protected]
176 verbose cwd D:\Realisations\the-svelte-professor
177 verbose Windows_NT 10.0.19044
178 verbose node v16.13.2
179 verbose npm v8.18.0
180 error code 1
181 error path D:\test_project\node_modules\svelte-navigator
182 error command failed
183 error command C:\WINDOWS\system32\cmd.exe /d /s /c is-ci || husky install
184 error 'is-ci' n'est pas reconnu en tant que commande interne
184 error ou externe, un programme ex�cutable ou un fichier de commandes.
184 error husky - .git can't be found (see https://typicode.github.io/husky/#/?id=custom-directory)
185 verbose exit 1
186 timing npm Completed in 11257ms
187 verbose unfinished npm timer reify 1662035465653
188 verbose unfinished npm timer reify:build 1662035476088
189 verbose unfinished npm timer build 1662035476089
190 verbose unfinished npm timer build:deps 1662035476089
191 verbose unfinished npm timer build:run:postinstall 1662035476099
192 verbose unfinished npm timer build:run:postinstall:node_modules/svelte-navigator 1662035476100
193 verbose code 1
194 error A complete log of this run can be found in:
from svelte-navigator.
Related Issues (20)
- Prefix to slugs / more flexible path parsing HOT 1
- vite and route with path parameter value contains a dot HOT 1
- Missing `typescript` peer dependency
- Nested routes not working as expected when router basepath is set
- parameters with Route HOT 1
- Lazy Loading example does not pass props to component
- Support Svelte 4 HOT 21
- useLocation() got triggered twice when we call navigate(-1)
- URL encoding with special characters does not work as expected
- How to make a dynamic route with Svelte and svelte-navigator? HOT 2
- Option to turn off inline styles to not violate a basic Content Security Policy HOT 2
- State is replaced when navigating to the same page but with no search path HOT 2
- Swipe Gestures HOT 2
- Combine private route with lazy loading
- Svelte Transitions break the back button HOT 1
- Plugin has no support for optional parameters HOT 3
- README typo
- FR: Add option to specify multiple paths for one route HOT 1
- Accessing active route outside of router
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-navigator.