-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Command not found #17
Comments
Hi @Lelelo1, But then it has to be called like this: yarn svelte-sitemap
# npm run svelte-sitemap Let me know how it works ;) |
@bartholomej I am having the same problem and it seems the documentation is not complete. Can you define better where to put the JS content (which file and context) and how to run the script when you build the site? Even after installing locally, it doesn't work. Thanks!!!! BTW: how to install the TS version? |
Hi @silvestrevivo, As you can see, I recommend the CLI option as a postbuild hook. In the vast majority of cases, this is what you want ;) Also see this example {
"name": "my-project",
"scripts": {
"postbuild": "npm run svelte-sitemap --domain https://mydomain.com"
}
} PS: If you prefer the JS/TS option, then TypeScript version is automatically available for you. I hope it's clear now and will work for you ;) |
@bartholomej thanks for the answer. For that I have to install the dependency globally. I would like to know how to run the package when I am in development or production, but installing locally. Thanks! |
@silvestrevivo Is it that the package now can't be called and says Is it necessary to install the package globally for you? It's always better to install it locally – directly to the project. If you install it locally, then you can call |
@bartholomej no worries. In #16 I found the solution. Thanks!!! |
Following
It says I get
[email protected]
versionWhen I try to run
svelte-sitemap
in some way in terminal on mac I get:It's the same with installing the npm package
The text was updated successfully, but these errors were encountered: