简体   繁体   中英

How to fix npm start errors on my nodejs?

After the npm install, I tried npm start for my project. But it shows an error. How can we fix this error? enter image description here

first go the correct file directory. usually cd "app-name" (It display this after you create a new app).

There's no package.json at the directory where you are trying to run the command. Likely you want to run npm start in one of the subdirectories.

you're in the wrong file directory;

You're in the wrong directory.

cd 02-exrpess-tutorial
npm install (in case you're missing any dependencies)
npm start

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM