'trying to install next js on VS code but show error by saying npm not recognized
I am trying to install next js in VS code, when I type 'npx create-next-app' in the powershell terminal in VS, it showed error by saying:
The term 'npx' is not recognized as the name of a cmdlet, function, script file, or operable program.Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I have already install node 10.13 like the documentation of next asked me to...
Here is a picture
Solution 1:[1]
It means npx is not installed in your machine please check or update your npm or installed npx first.
use this cmd to check if it is installed or not npx --version if not then update your node and npm version
as in your attachment, you did not pass the project name as you should provide the project name as well npx create-next-app myapp
Solution 2:[2]
When installed, try
npx create-next-app [name here]
cd my-project
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mohammad shaban |
| Solution 2 | hacker-root |

