Node Management for Windows (edit)

Bạn đang có Node version 14, bạn muốn dùng thêm Node version 12, đây là bài viết dành cho bạn.

https://github.com/bradygmsft/semantic-ui-aspnetcore-razor

Để code trên chạy được, cần chạy các lệnh sau để cài đặt Node.js, Gulp.js

  • npm install -g npm
  • git --version
  • npm install
  • npm -v
  • node -v
  • VS 2019 > View > Other Windows > Task Runner Explorer > Right click into Tasks > task_name > Starting ... Finished ... > Failed
  • npm install -g gulp
  • npm rebuild node-sass
  • VS 2019 > View > Other Windows > Task Runner Explorer > Right click into Tasks > task_name > Starting ... Finished ... > Succeed
  • npm install -g gulp-cli
  • npm install -g gulp-cli --force
  • gulp -v
  • npm install --save-dev gulp

Download Node version 12

https://nodejs.org/en/download/releases/

Download NVM

https://www.sitepoint.com/quick-tip-multiple-versions-node-nvm/

A node.js version management utility for Windows. Ironically written in Go.

https://github.com/coreybutler/nvm-windows

https://github.com/coreybutler/nvm-windows/releases

Gulp

https://www.sitepoint.com/introduction-gulp-js/

https://www.codementor.io/@soyzamudio/how-to-set-up-gulp-beginner-guide-du107zpmv

https://css-tricks.com/gulp-for-beginners/

https://gulpjs.com/docs/en/getting-started/watching-files/

Task Runner Explorer