javascriptnode.jsnpmsvelte

"npm run dev" Command Doesn't Work - Giving "missing script: dev" error


I was trying to run this SVELT GitHub repo on local server:

https://github.com/fusioncharts/svelte-fusioncharts

I tried to launch it with "npm run dev" command. But I am seeing this error:

npm ERR! missing script: dev

I have tried to fix the issue by setting 'ignore-scripts' to false with this command:

npm config set ignore-scripts false

But it doesn't work.

How can I fix the issue?


Solution

  • npm ERR! missing script: dev means there isn't a script having dev. You are likely running on an incorrect directory.

    Fusion charts seem to work with svelte codesandbox.