Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Gulp Basics Welcome to Gulp.js Your First Gulp Task

TARIQ ALREHILY
TARIQ ALREHILY
14,822 Points

I am having the below in Terminal, which is confusing!

Tariqs-MBP:treehouse-gulp-basics tariqalrehily$ npm install gulp
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN checkPermissions Missing write access to /Users/tariqalrehily/Desktop/Code/projects/treehouse-gulp-basics/node_modules
npm WARN enoent ENOENT: no such file or directory, open '/Users/tariqalrehily/Desktop/Code/projects/treehouse-gulp-basics/package.json'
npm WARN treehouse-gulp-basics No description
npm WARN treehouse-gulp-basics No repository field.
npm WARN treehouse-gulp-basics No README data
npm WARN treehouse-gulp-basics No license field.

npm ERR! path /Users/tariqalrehily/Desktop/Code/projects/treehouse-gulp-basics/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/tariqalrehily/Desktop/Code/projects/treehouse-gulp-basics/node_modules'
npm ERR!  { [Error: EACCES: permission denied, access '/Users/tariqalrehily/Desktop/Code/projects/treehouse-gulp-basics/node_modules']
npm ERR!   stack:
npm ERR!    "Error: EACCES: permission denied, access '/Users/tariqalrehily/Desktop/Code/projects/treehouse-gulp-basics/node_modules'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path:
npm ERR!    '/Users/tariqalrehily/Desktop/Code/projects/treehouse-gulp-basics/node_modules' }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/tariqalrehily/.npm/_logs/2018-11-22T19_33_48_305Z-debug.log

and when I try gulp hello

Tariqs-MBP:treehouse-gulp-basics tariqalrehily$ gulp hello
[19:36:45] Local gulp not found in ~/Desktop/Code/projects/treehouse-gulp-basics
[19:36:45] Try running: npm install gulp
Tariqs-MBP:treehouse-gulp-basics tariqalrehily$ 

1 Answer

Andy Hu
Andy Hu
7,473 Points

It seems that gulp couldn't be installed due to some permission problems with npm, thus you should follow the treehouse node/npm installation instructions to reinstall npm, after that use "npm install" to install gulp.