I am trying to host a local server of a Frontity project but for some reason the command npm run dev
doesn’t successfully host the project.
Here are my scripts from package.json
:
"scripts": {
"dev": "frontity dev",
"build": "frontity build",
"serve": "frontity serve"
}
I tried looking at my npm packages but could not figure this out.
After running npx frontity dev
I get this output
2
Answers
Few days ago I faced the same issue and read this blog post. There were some script problems and I solved it. The blog is-
https://sarthakb1516.blogspot.com/2023/06/demystifying-npm-run-dev-understanding.html
You can try to reinstall your npm or you can reconfigure it’s global path.
This might work for you!!