Search code examples
npmgulpnpm-installnode-modulesgulp-sass

How to install gulp via NPM?


Following this tutorial to set up app. It seems pretty normal and standard compared to all of the other tutorials that I have found. However, when tried and complete the 1.2.3 step Create a gulpfile.js at the root of the project: I am getting this error

error syntax error near unexpected token `}'

This is the command used in terminal.

var gulp = require('gulp'); 

Basically all want to do is download gulp so, can run sass with my css in atom. Any help?


Solution

  • You're right. The code wasn't for the terminal. I needed to create the file separately. I misread the tutorial. Thanks for the help!