Last Updated on April 13, 2022 by sandeeppote
![](https://sandeeppote.com/wp-content/uploads/2021/11/pdz6a5e4b90e535f4535fc68897eff98f42-edited-scaled.jpg)
Prerequisite
Install Node js – Download the latest node js from here
![](https://sandeeppote.com/wp-content/uploads/2021/11/image-31.png)
Install JSS CLI
npm install -g @sitecore-jss/sitecore-jss-cli
![](https://sandeeppote.com/wp-content/uploads/2021/11/image-32.png)
Create a new next js app using JSS CLI
Note the project name should be valid as per below error
next-jss-prj1 is not a valid name; you may use lowercase letters, hyphens, and underscores only.
Numbers not allowed in project name
jss create next-jss-prj nextjs
![](https://sandeeppote.com/wp-content/uploads/2021/11/image-33.png)
![](https://sandeeppote.com/wp-content/uploads/2021/11/image-34.png)
Installs all the required artifacts in the specified folder
![](https://sandeeppote.com/wp-content/uploads/2021/11/image-35.png)
Run the next jss app in desconneted mode-
jss start
![](https://sandeeppote.com/wp-content/uploads/2021/11/image-36.png)
The app should listen to port 3000
![](https://sandeeppote.com/wp-content/uploads/2021/11/image-37-1024x468.png)
Errors–
JSS CLI is running in global mode because it was not installed in the local node_modules folder.
Resolution– Install jss cli locally. Also ensure you are in correct directory. Should be in project directory
npm install @sitecore-jss/sitecore-jss-cli
0 Comments
1 Pingback