Command not found
See original GitHub issueFollowing
yarn add svelte-sitemap --dev
It says I get svelte-sitemap@2.1.2
version
When I try to run svelte-sitemap
in some way in terminal on mac I get:
zsh: command not found: svelte-sitemap
It’s the same with installing the npm package
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to fix a "Command not found" error in Linux - Red Hat
5 ways to fix "Command not found" errors · 1. Include the path · 2. Add a new path · 3. Copy a...
Read more >Linux / UNIX: Command Not Found Error and Solution - nixCraft
It means either program is not installed or PATH variable in your environment is not pointing to it. Learn how to fix command...
Read more >The error “Command not found” means that the command isn't ...
When you get the error “Command not found,” it means that the computer searched everywhere it knew to look and couldn't find a...
Read more >Troubleshooting "Bash: Command Not Found" Error in Linux
Fixing “bash: command not found” error · Method 1: Double check the command name (no, seriously) · Method 2: Ensure that the command...
Read more >How to fix Bash: Command Not Found Error in Linux
The command not found error is one of the most common errors in Linux. The cause of the occurrence of this error is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bartholomej I am installing the package locally and then adding the “postbuild” script as you mentioned in mypackage.json
and I get this error when I runnpm run build
:missing script: svelte-sitemap
Since the package is globally installed, the script is missed locally. In fact, developing on Vercel with the static adapter, it breaks the deployment. I hope this makes sense 😃@bartholomej no worries. In #16 I found the solution. Thanks!!!
@silvestrevivo Honestly, I’m not quite sure what problem you’re solving 😃 Can you write a bit more about how you proceeded?
Is it that the package now can’t be called and says
command not found: svelte-sitemap
, as originally mentioned in this issue? Where are you calling the script from and how are you calling it?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
npm run svelte-sitemap
and it will work in some CI/CD container as well.