@tkmynrg

Как вернуть исходные настройки Gulp?

Здравствуйте! Начал изучение gulp, git. Установил gulp локально, никаких ошибок не было, настраивал файл gulpfile.js, package.json, bower.json по инструкциям с интернета. В конце писалось, запустите строкой gulp, на что в ответ получил команда не найдена. Пошел искать ответ в интернете, написано было, установить gulp глобально npm i gulp -g, на что снова вылезла ошибка. Затем нашел строку команду npm config set prefix /usr/local. После этой команды все полетело и показываются ошибки.

Эта ошибка после пробы установки глобально:

$ npm i gulp -g
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 ERR! path C:\Program Files\Git\usr\local\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall mkdir
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Program Files\Git\usr\local\node_modules'
npm ERR! { Error: EPERM: operation not permitted, mkdir 'C:\Program Files\Git\usr\local\node_modules'
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, mkdir 'C:\Program Files\Git\usr\local\node_modules'
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'C:\\Program Files\\Git\\usr\\local\\node_modules' },
npm ERR! stack: 'Error: EPERM: operation not permitted, mkdir \'C:\\Program Files\\Git\\usr\\local\\node_modules\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'C:\\Program Files\\Git\\usr\\local\\node_modules',
npm ERR! parent: 'gulp' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
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! C:\Users\Admin\AppData\Roaming\npm-cache\_logs\2018-09-24T11_39_55_531Z-debug.log

Помогите, пожалуйста!
  • Вопрос задан
  • 136 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы