No local gulp install found

Hi,

I’m following the Ionic Crash course to learn a bit more about the new ionic beta version. When issuing the command gulp sass, I’m getting the error No local gulp install found, Try running: npm install gulp. I followed the tutorial literally (made my project with npm install -g cordova ionic gulp). Also, the command sass -v return that version 3.3.4 is installed. One difference I see with the tutorial is that the node_modules folder isn’t installed.

1 Like

if sass or gulp not installed?
try this:
npm install -g gulp
npm install -g sass

if you need the “node_modules” folder copy it from a new project

$ ionic start myApp tabs

than
gulp watch

Yes, both are installed and the node_modules folder isn’t downloaded when starting a new project. Could there be an error with the repo?

When I use the command to install gulp without -g, I get this error when I try the gulp sass command.

module.js:340
    throw err;
          ^
Error: Cannot find module 'gulp-concat'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/thomas/Desktop/cordova/myApp/gulpfile.js:2:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

if you start a new project, the default root folder should look like this:

 - README.md
 - config.xml
 - gulpfile.js
 - hooks
 - ionic.project
 - merges
 - node_modules
 - package.json
 - platforms
 - plugins
 - scss
 - www

in the node_modules folder it should look like this

 - gulp
 - gulp-concat
 - gulp-minify-css
 - gulp-rename
 - gulp-sass

do you have this folder structure?

No, these are the files/folder when starting a new project:

-rw-r--r--   1 thomas  staff  1642 30 mrt 13:05 README.md
-rw-r--r--   1 thomas  staff   810 30 mrt 13:05 config.xml
-rw-r--r--   1 thomas  staff   620 30 mrt 13:05 gulpfile.js
drwxr-xr-x   4 thomas  staff   136 30 mrt 13:05 hooks
-rw-r--r--   1 thomas  staff    74 30 mrt 13:05 ionic.project
drwxr-xr-x   5 thomas  staff   170 30 mrt 13:13 node_modules
-rw-r--r--   1 thomas  staff   302 30 mrt 13:13 package.json
drwxr-xr-x   3 thomas  staff   102 30 mrt 13:05 platforms
drwxr-xr-x   6 thomas  staff   204 30 mrt 13:06 plugins
drwxr-xr-x   3 thomas  staff   102 30 mrt 13:05 scss
drwxr-xr-x  12 thomas  staff   408 30 mrt 13:05 www

I also had this issue. Do:
$npm install

This will install the dependancies listed in the package.json file and install them locally in the node-modules folder.

11 Likes

Gulp must be installed globally as well?

try ionic setup sass

$npm install is the real solution. Thanks! :grinning:

@seburns

Yes Gulp needs to be installed globally, it may already be installed if you have used it for a different project.

You can verify Gulp is installed globally by running this command

npm ls -g --depth 0

What do these say:
node -v
npm -v

Hello, just wanted to say that I am also encountering this problem. I hope this gets fixed soon. I don’t understand what I’m doing wrong, I’m also just following all the tutorials online but so far I haven’t found a solution to this one.