U
U
user_tm2018-06-05 15:23:10
gulp.js
user_tm, 2018-06-05 15:23:10

gulp. What's wrong?

downloaded the gulp project https://github.com/agragregra/gulp-lesson and to install all the packages and dependencies in the folder, opened the console and entered the npm i command, this is what happened: PS C:\Users\GU\YandexDisk\mupro> npm i
npm WARN deprecated [email protected]: Since gulp-sourcemaps now works, use gulp-uglify instead
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https: //medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected] : Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
> [email protected] install C:\Users\GU\YandexDisk\mupro\node_modules\uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0
> [email protected] install C:\Users\GU\YandexDisk\mupro\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass /releases/downloa...
Download complete ] - :
Binary saved to C:\Users\GU\YandexDisk\mupro\node_modules\node-sass\vendor\win32-x64-64\binding.node
Caching binary to C:\Users\GU\AppData\Roaming\npm-cache\node-sass\4.9.0\win32-x64-64_binding.node
> [email protected] postinstall C:\Users\GU\YandexDisk \mupro\node_modules\node-sass
> node scripts/build.js
Binary found at C:\Users\GU\YandexDisk\mupro\node_modules\node-sass\vendor\win32-x64-64\binding.node
Testing binary
Binary is fine
> [email protected] postinstall C:\Users\GU\YandexDisk\mupro\node_modules\gifsicle
> node lib/install.js
√ gifsicle pre-build test passed successfully
> [email protected] postinstall C:\Users \GU\YandexDisk\mupro\node_modules\jpegtran-bin
> node lib/install.js
√ jpegtran pre-build test passed successfully
> [email protected] postinstall C:\Users\GU\YandexDisk\mupro\node_modules\optipng-bin
> node lib/install.js
√ optipng pre-build test passed successfully
> [email protected] postinstall C :\Users\GU\YandexDisk\mupro\node_modules\pngquant-bin
> node lib/install.js
internal/modules/cjs/loader.js:596
throw err;
^
Error: Cannot find module 'tar-stream'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520 :25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:\Users\GU\YandexDisk\mupro\node_modules\pngquant-bin\node_modules\decompress-tar\index.js:4:19)
at Module._compile (internal/modules/cjs/loader.js:702:30 )
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules /cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents)
: "} (current: {"os"
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\GU\AppData\Roaming\npm-cache\_logs\2018-06-05T11_55_49_010Z-debug.log
PS C:\Users\GU\YandexDisk\mupro> gulp
internal/modules/cjs/loader.js:596
throw err;
^
Error: Cannot find module 'imagemin-pngquant'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers .js:20:18)
at Object. (C:\Users\GU\YandexDisk\mupro\gulpfile.js:10:17)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal /modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
PS C:\Users\GU\YandexDisk\mupro>
5b1680a114e93861583828.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom Kuznetsov, 2018-08-08
@Artemije

This helped me with this error:
"I don't know what it is, but it helped:
npm config set unsafe-perm=true"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question