question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Command not found

See original GitHub issue

Following

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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
silvestrevivocommented, Nov 24, 2021

@bartholomej I am installing the package locally and then adding the “postbuild” script as you mentioned in my package.json and I get this error when I run npm 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!!!

0reactions
bartholomejcommented, Nov 23, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found