enter image description here enter image description here I have tried to run "npm start" within my terminal on VS code on a mac. I keep running into the same issue.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/ericwehder/Desktop/Web Dev/Typescript/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/ericwehder/Desktop/Web Dev/Typescript/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Inside package.json
add this script.
"scripts": {
"dev": "lite-server"
},
Then run the following command in your terminal to start:
npm run dev
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.