Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTARIQ ALREHILY
14,822 PointsI 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
7,473 PointsIt 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.