@Extramezz

Как поставить gulp 4 на windows?

Имеется "оконная" NodeJS, пытаюсь поставить на нее gulp 4.0:

npm install gulpjs/gulp.git#4.0 --global

на что получаю туеву хучу ошибок:

Конкретно
npm WARN addRemoteGit Error: not found: git 
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modu les\npm\node_modules\which\which.js:15:12) 
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_mo dules\which\which.js:70:19) 
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_mo dules\which\which.js:82:29) 
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul es\which\which.js:91:16 
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul es\which\node_modules\isexe\index.js:44:5 
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul es\which\node_modules\isexe\windows.js:29:5 
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15) 
npm WARN addRemoteGit gulpjs/gulp#4.0 resetting remote C:\Users\User\AppData \Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc because of error: { [Error: not found: git] code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\User\AppData\Roaming\npm-cache\_git-re motes\_templates --mirror git://github.com/gulpjs/gulp.git C:\Users\User\AppD ata\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc: unde fined 
npm ERR! git clone --template=C:\Users\User\AppData\Roaming\npm-cache\_git-re motes\_templates --mirror git://github.com/gulpjs/gulp.git C:\Users\User\AppD ata\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc: unde fined
npm WARN addRemoteGit Error: not found: git npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modu les\npm\node_modules\which\which.js:15:12) 
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_mo dules\which\which.js:70:19) 
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_mo dules\which\which.js:82:29) 
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul es\which\which.js:91:16 
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul es\which\node_modules\isexe\index.js:44:5 
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul es\which\node_modules\isexe\windows.js:29:5 
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit gulpjs/gulp#4.0 resetting remote C:\Users\User\AppData \Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526 becaus e of error: { [Error: not found: git] code: 'ENOGIT' } 
npm ERR! git clone --template=C:\Users\User\AppData\Roaming\npm-cache\_git-re motes\_templates --mirror https://github.com/gulpjs/gulp.git C:\Users\User\Ap pData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526: undefined 
npm ERR! git clone --template=C:\Users\User\AppData\Roaming\npm-cache\_git-re motes\_templates --mirror https://github.com/gulpjs/gulp.git C:\Users\User\Ap pData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526: undefined 
npm WARN addRemoteGit Error: not found: git 
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modu les\npm\node_modules\which\which.js:15:12) 
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_mo dules\which\which.js:70:19) 
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_mo dules\which\which.js:82:29) 
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul es\which\which.js:91:16 
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul es\which\node_modules\isexe\index.js:44:5 npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul es\which\node_modules\isexe\windows.js:29:5 
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15) 
npm WARN addRemoteGit gulpjs/gulp#4.0 resetting remote C:\Users\User\AppData \Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa because of error: { [Error: not found: git] code: 'ENOGIT' } npm ERR! git clone --template=C:\Users\User\AppData\Roaming\npm-cache\_git-re motes\_templates --mirror git@github.com:gulpjs/gulp.git C:\Users\User\AppDat a\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa: undefi ned 
npm ERR! git clone --template=C:\Users\User\AppData\Roaming\npm-cache\_git-re motes\_templates --mirror git@github.com:gulpjs/gulp.git C:\Users\User\AppDat a\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa: undefi ned 
npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\ 
npm ERR! node v4.4.5 npm ERR! npm v2.15.5 
npm ERR! code ENOGIT 
npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH. npm ERR! Please include the following file with any support request:



Почему? Как быть?
  • Вопрос задан
  • 3127 просмотров
Пригласить эксперта
Ответы на вопрос 4
@chanton91
Как вариант, который помог мне... попробуйте установить так
npm install gulp-4.0.build
данная команда была найдена тут https://www.npmjs.com/package/gulp-4.0.build
после установки в папке node_modules появится папка gulp-4.0.build, ее просто переименуйте в gulp

если это не поможет, попробуйте внести в path ./node_modules/.bin
Ответ написан
Комментировать
@Atllantis
not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH. npm ERR! Please include the following file with any support request:

По моему тут всё написано, нет?
Ответ написан
Комментировать
nepster-web
@nepster-web
Установите вначале GIT. https://git-scm.com/download/win
Ответ написан
Комментировать
Ваш ответ на вопрос

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

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