Starter-Kit-2018 icon indicating copy to clipboard operation
Starter-Kit-2018 copied to clipboard

Run Watch ERR!

Open Flamee1 opened this issue 5 years ago • 1 comments
trafficstars

I npm installed. Then npm audit fix.

31 packages looking for funding. 5 vulnerabilities need manual review.

Then I npm update & run watch.

I got an error and tried

npm install -g gulp-cli’ and got the message bellow.

ERR Code ELICYCLE ERR Failed at the coding phase watch script ERR This is probably not a problem with npm

Flamee1 avatar May 11 '20 13:05 Flamee1

For everyone having issues on a Mac, just downgrade your version of Node.js to an earlier version. I downgraded to version 6.17.1 and it finally worked. I tried a bunch of different things, but this is what worked for me. I originally had version 14.4.0 and could not get it to work. Then I downgraded to version 12.18.1 LTS, but that didn't work either. So I did the following in the Terminal to downgrade to version 6.17.1: Type: sudo npm install -g n Then Type: sudo n 6.17.1 After typing these two lines, I unzipped the Starter-Kit-2018 once again. Then I renamed the folder to todo-app-html. Next I opened up the Terminal from VS Code and typed the following: Type: npm install Then in the next step, as stated by someone else below, find a file on the left side of VS Code named gulpfile.js and locate a function name browserSync.init() and change the open property from false to true. If you don't understand, it will basically look like this: browserSync.init({ server: "./public", notify: false, open: false //change this to true if you want the broser to open automatically }); Change it to this and save: browserSync.init({ server: "./public", notify: false, open: true //change this to true if you want the broser to open automatically }); Finally type the following in the VS Code Terminal: Type: npm run watch Now you are good to go! Btw, I never ran "npm update" because I was afraid that something would break.

LuisRodNuezDev avatar Jun 22 '20 08:06 LuisRodNuezDev