F
F
Froskyta_12019-07-06 21:29:09
linux
Froskyta_1, 2019-07-06 21:29:09

Error installing gulp-sass plugin?

Installed Linux with the Solus distribution. I want to work on it. Now, I'm using gulp. And it has the gulp-sass plugin. When installing, it gives an error. Who knows how to fix this problem?
Command: sudo npm install node-sass gulp-sass --save-dev
Result:

> [email protected] install /home/froskyta/Рабочий стол/123/node_modules/node-sass
> node scripts/install.js

Unable to save binary /home/froskyta/Рабочий стол/123/node_modules/node-sass/vendor/linux-x64-64 : { Error: EACCES: permission denied, mkdir '/home/froskyta/Рабочий стол/123/node_modules/node-sass/vendor'
    at Object.mkdirSync (fs.js:757:3)
    at sync (/home/froskyta/Рабочий стол/123/node_modules/mkdirp/index.js:71:13)
    at Function.sync (/home/froskyta/Рабочий стол/123/node_modules/mkdirp/index.js:77:24)
    at checkAndDownloadBinary (/home/froskyta/Рабочий стол/123/node_modules/node-sass/scripts/install.js:114:11)
    at Object.<anonymous> (/home/froskyta/Рабочий стол/123/node_modules/node-sass/scripts/install.js:157:1)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  errno: -13,
  syscall: 'mkdir',
  code: 'EACCES',
  path:
   '/home/froskyta/Рабочий стол/123/node_modules/node-sass/vendor' }

> [email protected] postinstall /home/froskyta/Рабочий стол/123/node_modules/node-sass
> node scripts/build.js

Building: /usr/bin/node /home/froskyta/Рабочий стол/123/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/node',
gyp verb cli   '/home/froskyta/Рабочий стол/123/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.16
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.16.0
gyp verb command install [ '10.16.0' ]
gyp verb install input version string "10.16.0"
gyp verb install installing version: 10.16.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 10.16.0
gyp verb ensuring nodedir is created /root/.node-gyp/10.16.0
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.16.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/froskyta/Рабочий стол/123/node_modules/node-sass/.node-gyp"
gyp verb tmpdir == cwd automatically will remove dev files after to save disk space
gyp verb command install [ '--node_gyp_internal_noretry', '10.16.0' ]
gyp verb install input version string "10.16.0"
gyp verb install installing version: 10.16.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 10.16.0
gyp verb ensuring nodedir is created /home/froskyta/Рабочий стол/123/node_modules/node-sass/.node-gyp/10.16.0
gyp WARN install got an error, rolling back install
gyp verb command remove [ '10.16.0' ]
gyp verb remove using node-gyp dir: /home/froskyta/Рабочий стол/123/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 10.16.0
gyp verb remove removing development files for version: 10.16.0
gyp WARN install got an error, rolling back install
gyp verb command remove [ '10.16.0' ]
gyp verb remove using node-gyp dir: /home/froskyta/Рабочий стол/123/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 10.16.0
gyp verb remove removing development files for version: 10.16.0
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/froskyta/Рабочий стол/123/node_modules/node-sass/.node-gyp'
gyp ERR! System Linux 4.20.16-112.current
gyp ERR! command "/usr/bin/node" "/home/froskyta/Рабочий стол/123/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/froskyta/Рабочий стол/123/node_modules/node-sass
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1
npm WARN [email protected] requires a peer of [email protected] - 3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected]^1.14.7 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.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!     /root/.npm/_logs/2019-07-06T18_23_58_619Z-debug.log

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question