Module build failed error cannot find module node sass

Module build failed: Error: Cannot find module 'node-sass' Also run the commands, sudo npm install node-sass --save sudo npm rebuild node-sass --force Still showing the same error. Anyone pls h...

Module build failed: Error: Cannot find module ‘node-sass’

Also run the commands,

sudo npm install node-sass —save

sudo npm rebuild node-sass —force

Still showing the same error. Anyone pls help.

asked Sep 7, 2018 at 4:57

Vishnu Nair's user avatar

There are two things you can do to fixed this issue.

1) npm rebuild node-sass --force 

2) npm install node-sass

This both command will fixed your node-sass issue.

answered Sep 7, 2018 at 5:02

Sachin Shah's user avatar

Sachin ShahSachin Shah

4,4363 gold badges22 silver badges49 bronze badges

0

This is a common issue

Step 1 : Try removing the node_modules directory

Step 2: Install with the command

npm i

answered Sep 7, 2018 at 4:58

Sajeetharan's user avatar

SajeetharanSajeetharan

212k61 gold badges343 silver badges388 bronze badges

2

I got the same error and this command fix my issue.
sudo npm install --save-dev --unsafe-perm node-sass

answered Mar 3, 2019 at 23:14

Betsegaw's user avatar

BetsegawBetsegaw

811 silver badge3 bronze badges

0

Had the same issue.
But I was too lazy to read the NPM feedback.

So… I was missing —scripts-prepend-node-path.
Simple ran:

npm install --scripts-prepend-node-path

and

npm run watch --scripts-prepend-node-path

All good.

answered Sep 9, 2019 at 9:55

ruinobreferreira's user avatar

try these :

Windows users

set NODE_OPTIONS=—openssl-legacy-provider

Mac users

export NODE_OPTIONS=—openssl-legacy-provider

answered Jun 24, 2022 at 12:14

Vinod's user avatar

npm install node-sass —save

node-sass@4.8.3 install D:DemoAngular4templatesnode_modulesnode-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.8.3/win32-x64-57_binding.node
Cannot download «https://github.com/sass/node-sass/releases/download/v4.8.3/win32-x64-57_binding.node»:

getaddrinfo EAI_AGAIN github.com:443

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

node-sass@4.8.3 postinstall D:DemoAngular4templatesnode_modulesnode-sass
node scripts/build.js

Building: C:Program Filesnodejsnode.exe D:DemoAngular4templatesnode_modulesnode-gypbinnode-gyp.js rebuild —verbose —libsass_ext= —libsass_cflags= —libsass_ldflags= —libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ ‘C:Program Filesnodejsnode.exe’,
gyp verb cli ‘D:DemoAngular4templatesnode_modulesnode-gypbinnode-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 node-gyp@3.6.2
gyp info using node@8.9.1 | win32 | 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 failed Error: not found: python2
gyp verb which failed at getNotFoundError (D:DemoAngular4templatesnode_moduleswhichwhich.js:13:12)
gyp verb which failed at F (D:DemoAngular4templatesnode_moduleswhichwhich.js:68:19)
gyp verb which failed at E (D:DemoAngular4templatesnode_moduleswhichwhich.js:80:29)
gyp verb which failed at D:DemoAngular4templatesnode_moduleswhichwhich.js:89:16
gyp verb which failed at D:DemoAngular4templatesnode_modulesisexeindex.js:42:5
gyp verb which failed at D:DemoAngular4templatesnode_modulesisexewindows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (D:DemoAngular4templatesnode_moduleswhichwhich.js:13:12)
gyp verb which failed at F (D:DemoAngular4templatesnode_moduleswhichwhich.js:68:19)
gyp verb which failed at E (D:DemoAngular4templatesnode_moduleswhichwhich.js:80:29)
gyp verb which failed at D:DemoAngular4templatesnode_moduleswhichwhich.js:89:16
gyp verb which failed at D:DemoAngular4templatesnode_modulesisexeindex.js:42:5
gyp verb which failed at D:DemoAngular4templatesnode_modulesisexewindows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed stack: ‘Error: not found: python2n at getNotFoundError (D:DemoAngular4templatesnode_moduleswhichwhich.js:13:12)n at F
(D:DemoAngular4templatesnode_moduleswhichwhich.js:68:19)n at E (D:DemoAngular4templatesnode_moduleswhichwhich.js:80:29)n at D:DemoAngular4templatesnode_moduleswhichwhich.js:89:16n at D:DemoAngular4templatesnode_modulesisexeindex.js:42:5n at D:DemoAngular4templatesnode_modulesisexewindows.js:36:5n at FSReqWrap.oncomplete (fs.js:152:21)’,
gyp verb which failed code: ‘ENOENT’ }
gyp verb check python checking for Python executable «python» in the PATH
gyp verb which failed Error: not found: python
gyp verb which failed at getNotFoundError (D:DemoAngular4templatesnode_moduleswhichwhich.js:13:12)
gyp verb which failed at F (D:DemoAngular4templatesnode_moduleswhichwhich.js:68:19)
gyp verb which failed at E (D:DemoAngular4templatesnode_moduleswhichwhich.js:80:29)
gyp verb which failed at D:DemoAngular4templatesnode_moduleswhichwhich.js:89:16
gyp verb which failed at D:DemoAngular4templatesnode_modulesisexeindex.js:42:5
gyp verb which failed at D:DemoAngular4templatesnode_modulesisexewindows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed python { Error: not found: python
gyp verb which failed at getNotFoundError (D:DemoAngular4templatesnode_moduleswhichwhich.js:13:12)
gyp verb which failed at F (D:DemoAngular4templatesnode_moduleswhichwhich.js:68:19)
gyp verb which failed at E (D:DemoAngular4templatesnode_moduleswhichwhich.js:80:29)
gyp verb which failed at D:DemoAngular4templatesnode_moduleswhichwhich.js:89:16
gyp verb which failed at D:DemoAngular4templatesnode_modulesisexeindex.js:42:5
gyp verb which failed at D:DemoAngular4templatesnode_modulesisexewindows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed stack: ‘Error: not found: pythonn at getNotFoundError (D:DemoAngular4templatesnode_moduleswhichwhich.js:13:12)n at F (D:DemoAngular4templatesnode_moduleswhichwhich.js:68:19)n at E (D:DemoAngular4templatesnode_moduleswhichwhich.js:80:29)n at D:DemoAngular4templatesnode_moduleswhichwhich.js:89:16n at D:DemoAngular4templatesnode_modulesisexeindex.js:42:5n at D:DemoAngular4templatesnode_modulesisexewindows.js:36:5n at FSReqWrap.oncomplete (fs.js:152:21)’,
gyp verb which failed code: ‘ENOENT’ }
gyp verb could not find «python». checking python launcher
gyp verb could not find «python». guessing location
gyp verb ensuring that file exists: C:Python27python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable «python», you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (D:DemoAngular4templatesnode_modulesnode-gyplibconfigure.js:483:19)
gyp ERR! stack at PythonFinder. (D:DemoAngular4templatesnode_modulesnode-gyplibconfigure.js:508:16)
gyp ERR! stack at D:DemoAngular4templatesnode_modulesgraceful-fspolyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command «C:Program Filesnodejsnode.exe» «D:DemoAngular4templatesnode_modulesnode-gypbinnode-gyp.js» «rebuild» «—verbose» «—libsass_ext=» «—libsass_cflags=» «—libsass_ldflags=» «—libsass_library=»
gyp ERR! cwd D:DemoAngular4templatesnode_modulesnode-sass
gyp ERR! node -v v8.9.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_moduleschokidarnode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {«os»:»darwin»,»arch»:»any»} (current: {«os»:»win32″,»arch»:»x64″})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_moduleswatchpacknode_moduleschokidarnode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {«os»:»darwin»,»arch»:»any»} (current: {«os»:»win32″,»arch»:»x64″})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_moduleswebpack-dev-servernode_moduleschokidarnode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {«os»:»darwin»,»arch»:»any»} (current: {«os»:»win32″,»arch»:»x64″})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.8.3 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.8.3 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:Userssuraj.karaleAppDataRoamingnpm-cache_logs2018-04-04T09_10_51_713Z-debug.log

problem

installing node-sass encountered the following error

PS E:phoneEmallphone-emall> npm i node-sass

> [email protected] install E:phoneEmallphone-emallnode_modulesnode-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-64_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g.

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080

> [email protected] postinstall E:phoneEmallphone-emallnode_modulesnode-sass
> node scripts/build.js

Building: C:Program Filesnodejsnode.exe E:phoneEmallphone-emallnode_modulesnode-gypbinnode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\Program Files\nodejs\node.exe',
gyp verb cli   'E:\phoneEmall\phone-emall\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] | win32 | 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` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:phoneEmallphone-emallnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (E:phoneEmallphone-emallnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (E:phoneEmallphone-emallnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at E:phoneEmallphone-emallnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at E:phoneEmallphone-emallnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at E:phoneEmallphone-emallnode_modulesisexewindows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:phoneEmallphone-emallnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (E:phoneEmallphone-emallnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (E:phoneEmallphone-emallnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at E:phoneEmallphone-emallnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at E:phoneEmallphone-emallnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at E:phoneEmallphone-emallnode_modulesisexewindows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python2n    at getNotFoundError (E:\phoneEmall\phone-emall\node_modules\which\which.js:13:12)n    at F (E:\phoneEmall\phone-emall\node_modules\which\which.js:68:19)n    at E (E:\phoneEmall\phone-emall\node_modules\which\which.js:80:29)n    at E:\phoneEmall\phone-emall\node_modules\which\which.js:89:16n    at E:\phoneEmall\phone-emall\node_modules\isexe\index.js:42:5n    at E:\phoneEmall\phone-emall\node_modules\isexe\windows.js:36:5n    at FSReqWrap.oncomplete (fs.js:153:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:UsersAdministratorAppDataLocalProgramsPythonPython37python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:UsersAdministratorAppDataLocalProgramsPythonPython37python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:389:11)
gyp ERR! stack     at Socket.emit (events.js:189:13)
gyp ERR! stack     at Pipe._handle.close (net.js:597:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "E:\phoneEmall\phone-emall\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:phoneEmallphone-emallnode_modulesnode-sass
gyp ERR! node -v v10.15.3
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]^1.12.6 || ^2.1.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected]^1.0.0 || ^2.0.0 || ^3.0.0 but
none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected]>=1.3.0 <3 but none is installed. You must install peer dependencies yourself.

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!     C:UsersAdministratorAppDataRoamingnpm-cache_logs2019-07-12T03_34_51_589Z-debug.log

to find the answer

looked at the error message, and saw that there was a 404 in the file download. Then I searched for the file and found the hosts file. I thought it was a python problem, and then I reinstalled various versions of python…

took 3 hours, tried countless answers on the Internet, no solution

improved the version number of sass-loader and node-sass to the latest version, the current latest version is as follows (July 12, 2019)
“sass-loader” : “^7.1.0”,
“node-sass” : “^4.12.0”,

as shown in the figure, modify the package.json file

then execute the following command to install

npm i sass-loader
npm i node-sass

2020-05-06 update

the problem is often the cause of the Node – sass version problem, may be one reason for this is that: because version too old so will cause some dependencies have already can’t find it, the company has a four years ago old projects is this kind of problem, the modified Node – sass version 4.12 is not necessarily suitable for all projects, can test several versions, if the above version failed can try this version

"node-sass": "^4.13.1",
"sass-loader": "^4.1.1",

What if

still fails?

my answer may not be right for you, but you have to believe in the bright side.

a keen discussion program + financial management person, welcome to exchange ~

Содержание

  1. How to fix error “cannot find module gulp-sass” in Gulp
  2. Check your node_modules folder
  3. Install the gulp-sass module manually
  4. Delete and reinstall all npm packages
  5. Ошибка: не удается найти модуль ‘gulp -sass’
  6. ОТВЕТЫ
  7. Ответ 1
  8. Ответ 2
  9. Ответ 3
  10. Ответ 4
  11. Ответ 5
  12. Ответ 6
  13. Ответ 7
  14. Ответ 8
  15. Ответ 9
  16. Ответ 10
  17. I can’t install gulp-sass. Error: Cannot find module ‘gulp-sass’ #2619
  18. Comments

How to fix error “cannot find module gulp-sass” in Gulp

When you’re running Gulp, you might see an error that says something like “cannot find module gulp-sass”.

This error message means that Gulp is trying to run a function from the gulp-sass package, but it can’t locate it.

If you’re getting this annoying error, here are a few fixes that you can use to get rid of it.

Check your node_modules folder

When you install npm packages, npm will create a node_modules folder in your project root. It will also add packages you’ve installed to your package.json and package-lock.json files.

You can confirm that a package has been installed by making sure it’s listed in your package and package-lock.json files. And double-check your node_modules folder to make sure the package is in a subfolder there.

Lastly, make sure you are running your website or web app from the project root folder, and that the root folder contains the node_modules folder as a direct subfolder. If the node_modules folder isn’t in that location, it may cause this error.

Install the gulp-sass module manually

If you don’t see the gulp-sass package in your node_modules folder, or are still having issues, you can try reinstalling the package.

First, open your package.json and package-lock.json files and remove any references to gulp-sass and node-sass that you see. This will make sure that you will reinstall the most up-to-date version of the packages.

The line to delete in order to remove the gulp-sass package from your package.json file. The lines to delete the gulp-sass package from your package-lock.json file.

Then, run npm install gulp-sass or npm install gulp-sass —save-dev to install and save in package.json file. Adding the —save-dev flag will add packages to the devDependencies section of your package.json file.

If you don’t add the flag it will get added to the dependencies section of the file. Especially if you’re just working locally, it doesn’t matter a ton which section you use, so follow your own preferences on this.

Note that this will install the package locally in your project folder, and the package will be accessible only from that project. You can also install packages globally on your computer, so that they are accessible from any other directory.

You can do this by adding the global ( -g ) flag to the install command, like this: npm install -g gulp-sass .

However I usually install packages local to the project. I do install the gulp-cli globally, but everything else I just keep local.

Delete and reinstall all npm packages

If just removing and reinstalling just the gulp-sass package doesn’t work, you can try deleting and reinstalling all your npm packages.

First, make sure that all the packages you need in your project exist in your package.json file. Also make sure that gulp-sass exists in your package.json file.

Then, delete your node_modules folder. You can do this by deleting from your file explorer, or running rm node_modules in the command line. If you encounter errors or difficulties deleting the folder, you can try installing an npm package called rimraf that helps with deleting.

I install rimraf globally on my computer so I can run it from any directory. You can install rimraf globally by running npm install -g rimraf . Then you can attempt to delete the folder by running rimraf node_modules from the project root command line.

If you still have issues or get an error like node_modules@types is not accessible you may need to first close VS Code or whichever code editor you are using. Then try deleting the folder again.

Once you have successfully deleted the node_modules folder, run npm install from your project root to install all the packages you have listed.

I’m making a course that will teach you how to build a real-world responsive website from scratch!

Sign up to get emails about new posts and other info. Unsubscribe anytime.

Affiliate Disclaimer

I participate in various affiliate programs and my content contains affiliate links. If you purchase through those links, I may receive a commission from the seller, at no cost to yourself. It’s one way you can support this site!

As an Amazon Associate I earn from qualifying purchases. I only recommend products that I personally know and believe are helpful to my readers.

Источник

Ошибка: не удается найти модуль ‘gulp -sass’

Когда я компилирую с gulp , я получаю сообщение об ошибке, как показано ниже. Как я могу это исправить?

ОТВЕТЫ

Ответ 1

Просто сделайте npm update , а затем npm install gulp-sass —save-dev в корневой папке, а затем, когда вы запустите, вы не должны иметь никаких проблем.

Ответ 2

Вы проверили этот вопрос?

Ответ 3

Отредактируйте ваш package.json. Изменить:

Удалите папку node_modules и снова запустите npm install .

Ответ 4

У меня была та же проблема, и я решил сделать это npm update . Но я получаю сообщение о разрешении, поэтому я запускаю:

Этот набор разрешений для моего пользователя запускает команды npm, такие как администратор. Затем я запускаю это снова:

Тогда моя проблема с этим была решена.

Ответ 5

У меня была такая же проблема на моем новом компьютере с Windows 10. Мне пришлось использовать инструменты сборки Windows с помощью npm install -g windows-build-tools . (https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#environment-setup-and-configuration)

Ответ 6

Ответ 7

я также столкнулся с той же проблемой, возможное решение состоит в том, чтобы установить модуль npm install -g gulp-sass , но если вы запустите npm install -g gulp-sass команду: npm install -g gulp-sass или npm install —save gulp-sass , это не будет быть обновленным в конце проекта sass-node.

Эта версия node-sass отсутствует (возвращает 404) и Google Web-Starter-Kit v0.6.5 зависел от него в течение длительного времени, с декабря 2016 года. Таким образом, он работал в течение длительного времени и должен иметь только исчез.

Ошибка HTTP 404 Не найдено

Единственный обходной путь — обновить node-sass: npm я [email protected] —save-dev чтобы исправить проблему.

Ответ 8

В корневой папке, где находится package.json , запустите npm outdated . Вы получите устаревшие пакеты с некоторыми подробностями. В этих деталях вы увидите номер текущей версии устаревшего пакета.

После этого откройте файл package.json и вручную измените номер версии соответствующего пакета.

Затем удалите папку node_modules и запустите npm install . Это должно решить эту проблему.

Ответ 9

У меня была такая же ошибка на Ubuntu 18.04

Удалите папку node_modules и запустите

Ответ 10

У меня была эта проблема в течение нескольких дней, ища ответы. Мой журнал ошибок был похож на этот npm просто не установит node sass Единственной проблемой была версия node. Возможно, это может помочь некоторым из вас.

Источник

I can’t install gulp-sass. Error: Cannot find module ‘gulp-sass’ #2619

  • NPM version ( npm -v ):
  • Node version ( node -v ):
  • Node Process ( node -p process.versions ):
  • Node Platform ( node -p process.platform ):
  • Node architecture ( node -p process.arch ):
  • node-sass version ( node -p «require(‘node-sass’).info» ):
  • npm node-sass versions ( npm ls node-sass ):

Mary-Pieroszkiewiczs-MacBook-Pro:GOGOmedia____Recruitment__Task marylapieroszkiewicz$ sudo npm install gulp —save-dev
Password:

fsevents@1.2.7 install /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents
node install

node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for fsevents@1.2.7 and node@11.12.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib’
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/build’
gyp ERR! System Darwin 17.7.0
gyp ERR! command «/usr/local/bin/node» «/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js» «configure» «—fallback-to-build» «—module=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node» «—module_name=fse» «—module_path=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64» «—napi_version=4» «—node_abi_napi=napi»
gyp ERR! cwd /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents
gyp ERR! node -v v11.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure —fallback-to-build —module=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node —module_name=fse —module_path=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 —napi_version=4 —node_abi_napi=napi’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:197:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:988:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
node-pre-gyp ERR! System Darwin 17.7.0
node-pre-gyp ERR! command «/usr/local/bin/node» «/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp» «install» «—fallback-to-build»
node-pre-gyp ERR! cwd /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents
node-pre-gyp ERR! node -v v11.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure —fallback-to-build —module=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node —module_name=fse —module_path=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 —napi_version=4 —node_abi_napi=napi’ (1)
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 install: node install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

  • gulp@4.0.0
    added 316 packages from 216 contributors and audited 6374 packages in 73.882s
    found 0 vulnerabilities

Mary-Pieroszkiewiczs-MacBook-Pro:GOGOmedia____Recruitment__Task marylapieroszkiewicz$ gulp -v
[18:15:44] CLI version 2.0.1
[18:15:44] Local version 4.0.0
Mary-Pieroszkiewiczs-MacBook-Pro:GOGOmedia____Recruitment__Task marylapieroszkiewicz$ ls
README.md gulpfile.js index.html package-lock.json scss
_assets images node_modules package.json
Mary-Pieroszkiewiczs-MacBook-Pro:GOGOmedia____Recruitment__Task marylapieroszkiewicz$ sudo npm i gulp-sass -D
Password:

fsevents@1.2.7 install /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents
node install

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for fsevents@1.2.7 and node@11.12.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib’
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/build’
gyp ERR! System Darwin 17.7.0
gyp ERR! command «/usr/local/bin/node» «/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js» «configure» «—fallback-to-build» «—module=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node» «—module_name=fse» «—module_path=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64» «—napi_version=4» «—node_abi_napi=napi»
gyp ERR! cwd /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents
gyp ERR! node -v v11.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure —fallback-to-build —module=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node —module_name=fse —module_path=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 —napi_version=4 —node_abi_napi=napi’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:197:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:988:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
node-pre-gyp ERR! System Darwin 17.7.0
node-pre-gyp ERR! command «/usr/local/bin/node» «/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp» «install» «—fallback-to-build»
node-pre-gyp ERR! cwd /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents
node-pre-gyp ERR! node -v v11.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure —fallback-to-build —module=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node —module_name=fse —module_path=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 —napi_version=4 —node_abi_napi=napi’ (1)

node-sass@4.11.0 install /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass
node scripts/install.js

Unable to save binary /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/vendor/darwin-x64-67 : < Error: EACCES: permission denied, mkdir ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/vendor’
at Object.mkdirSync (fs.js:773:3)
at sync (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/mkdirp/index.js:71:13)
at Function.sync (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/scripts/install.js:114:11)
at Object. (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/scripts/install.js:157:1)
at Module._compile (internal/modules/cjs/loader.js:799:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
at Module.load (internal/modules/cjs/loader.js:666:32)
at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
at Function.Module._load (internal/modules/cjs/loader.js:598:3)
errno: -13,
syscall: ‘mkdir’,
code: ‘EACCES’,
path:
‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/vendor’ >

node-sass@4.11.0 postinstall /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass
node scripts/build.js

Building: /usr/local/bin/node /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/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/local/bin/node’,
gyp verb cli ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/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 node-gyp@3.8.0
gyp info using node@11.12.0 | darwin | 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 failed Error: not found: python2
gyp verb which failed at getNotFoundError (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:13:12)
gyp verb which failed at F (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:68:19)
gyp verb which failed at E (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:80:29)
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:89:16
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/index.js:42:5
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb which failed python2 < Error: not found: python2
gyp verb which failed at getNotFoundError (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:13:12)
gyp verb which failed at F (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:68:19)
gyp verb which failed at E (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:80:29)
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:89:16
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/index.js:42:5
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb which failed stack:
gyp verb which failed ‘Error: not found: python2n at getNotFoundError (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:13:12)n at F (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:68:19)n at E (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:80:29)n at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:89:16n at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/index.js:42:5n at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/mode.js:8:5n at FSReqCallback.oncomplete (fs.js:158:21)’,
gyp verb which failed code: ‘ENOENT’ >
gyp verb check python checking for Python executable «python» in the PATH
gyp verb which succeeded python /usr/bin/python
gyp verb check python version /usr/bin/python -c «import sys; print «2.7.10 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: 11.12.0
gyp verb command install [ ‘11.12.0’ ]
gyp verb install input version string «11.12.0»
gyp verb install installing version: 11.12.0
gyp verb install —ensure was passed, so won’t reinstall if already installed
gyp verb install version is already installed, need to check «installVersion»
gyp verb got «installVersion» 9
gyp verb needs «installVersion» 9
gyp verb install version is good
gyp verb get node dir target node version installed: 11.12.0
gyp verb build dir attempting to create «build» dir: /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/build’
gyp ERR! System Darwin 17.7.0
gyp ERR! command «/usr/local/bin/node» «/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-gyp/bin/node-gyp.js» «rebuild» «—verbose» «—libsass_ext=» «—libsass_cflags=» «—libsass_ldflags=» «—libsass_library=»
gyp ERR! cwd /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass
gyp ERR! node -v v11.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 install: node install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.11.0 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.11.0 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! /Users/marylapieroszkiewicz/.npm/_logs/2019-03-20T17_31_07_796Z-debug.log
Mary-Pieroszkiewiczs-MacBook-Pro:GOGOmedia____Recruitment__Task marylapieroszkiewicz$ gulp sass
internal/modules/cjs/loader.js:651
throw err;
^

Error: Cannot find module ‘gulp-sass’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:649:15)
at Function.Module._load (internal/modules/cjs/loader.js:575:25)
at Module.require (internal/modules/cjs/loader.js:705:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/gulpfile.js:2:14)
at Module._compile (internal/modules/cjs/loader.js:799:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
at Module.load (internal/modules/cjs/loader.js:666:32)
at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
at Function.Module._load (internal/modules/cjs/loader.js:598:3)
Mary-Pieroszkiewiczs-MacBook-Pro:GOGOmedia____Recruitment__Task marylapieroszkiewicz$ gulp
internal/modules/cjs/loader.js:651
throw err;
^

Error: Cannot find module ‘gulp-sass’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:649:15)
at Function.Module._load (internal/modules/cjs/loader.js:575:25)
at Module.require (internal/modules/cjs/loader.js:705:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/gulpfile.js:2:14)
at Module._compile (internal/modules/cjs/loader.js:799:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
at Module.load (internal/modules/cjs/loader.js:666:32)
at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
at Function.Module._load (internal/modules/cjs/loader.js:598:3)
Mary-Pieroszkiewiczs-MacBook-Pro:GOGOmedia____Recruitment__Task marylapieroszkiewicz$ sudo npm install —save-dev gulp-sass
Password:

fsevents@1.2.7 install /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents
node install

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for fsevents@1.2.7 and node@11.12.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib’
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/build’
gyp ERR! System Darwin 17.7.0
gyp ERR! command «/usr/local/bin/node» «/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js» «configure» «—fallback-to-build» «—module=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node» «—module_name=fse» «—module_path=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64» «—napi_version=4» «—node_abi_napi=napi»
gyp ERR! cwd /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents
gyp ERR! node -v v11.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure —fallback-to-build —module=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node —module_name=fse —module_path=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 —napi_version=4 —node_abi_napi=napi’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:197:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:988:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
node-pre-gyp ERR! System Darwin 17.7.0
node-pre-gyp ERR! command «/usr/local/bin/node» «/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp» «install» «—fallback-to-build»
node-pre-gyp ERR! cwd /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents
node-pre-gyp ERR! node -v v11.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure —fallback-to-build —module=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node —module_name=fse —module_path=/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 —napi_version=4 —node_abi_napi=napi’ (1)

node-sass@4.11.0 install /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass
node scripts/install.js

Unable to save binary /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/vendor/darwin-x64-67 : < Error: EACCES: permission denied, mkdir ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/vendor’
at Object.mkdirSync (fs.js:773:3)
at sync (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/mkdirp/index.js:71:13)
at Function.sync (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/scripts/install.js:114:11)
at Object. (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/scripts/install.js:157:1)
at Module._compile (internal/modules/cjs/loader.js:799:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
at Module.load (internal/modules/cjs/loader.js:666:32)
at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
at Function.Module._load (internal/modules/cjs/loader.js:598:3)
errno: -13,
syscall: ‘mkdir’,
code: ‘EACCES’,
path:
‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/vendor’ >

node-sass@4.11.0 postinstall /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass
node scripts/build.js

Building: /usr/local/bin/node /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/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/local/bin/node’,
gyp verb cli ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/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 node-gyp@3.8.0
gyp info using node@11.12.0 | darwin | 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 failed Error: not found: python2
gyp verb which failed at getNotFoundError (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:13:12)
gyp verb which failed at F (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:68:19)
gyp verb which failed at E (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:80:29)
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:89:16
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/index.js:42:5
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb which failed python2 < Error: not found: python2
gyp verb which failed at getNotFoundError (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:13:12)
gyp verb which failed at F (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:68:19)
gyp verb which failed at E (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:80:29)
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:89:16
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/index.js:42:5
gyp verb which failed at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb which failed stack:
gyp verb which failed ‘Error: not found: python2n at getNotFoundError (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:13:12)n at F (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:68:19)n at E (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:80:29)n at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/which/which.js:89:16n at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/index.js:42:5n at /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/isexe/mode.js:8:5n at FSReqCallback.oncomplete (fs.js:158:21)’,
gyp verb which failed code: ‘ENOENT’ >
gyp verb check python checking for Python executable «python» in the PATH
gyp verb which succeeded python /usr/bin/python
gyp verb check python version /usr/bin/python -c «import sys; print «2.7.10 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: 11.12.0
gyp verb command install [ ‘11.12.0’ ]
gyp verb install input version string «11.12.0»
gyp verb install installing version: 11.12.0
gyp verb install —ensure was passed, so won’t reinstall if already installed
gyp verb install version is already installed, need to check «installVersion»
gyp verb got «installVersion» 9
gyp verb needs «installVersion» 9
gyp verb install version is good
gyp verb get node dir target node version installed: 11.12.0
gyp verb build dir attempting to create «build» dir: /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass/build’
gyp ERR! System Darwin 17.7.0
gyp ERR! command «/usr/local/bin/node» «/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-gyp/bin/node-gyp.js» «rebuild» «—verbose» «—libsass_ext=» «—libsass_cflags=» «—libsass_ldflags=» «—libsass_library=»
gyp ERR! cwd /Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/node_modules/node-sass
gyp ERR! node -v v11.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 install: node install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.11.0 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.11.0 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! /Users/marylapieroszkiewicz/.npm/_logs/2019-03-21T09_32_32_941Z-debug.log
Mary-Pieroszkiewiczs-MacBook-Pro:GOGOmedia____Recruitment__Task marylapieroszkiewicz$ sudo gulp
internal/modules/cjs/loader.js:651
throw err;
^

Error: Cannot find module ‘gulp-sass’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:649:15)
at Function.Module._load (internal/modules/cjs/loader.js:575:25)
at Module.require (internal/modules/cjs/loader.js:705:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/Users/marylapieroszkiewicz/Desktop/GOGOmedia____Recruitment__Task/gulpfile.js:2:14)
at Module._compile (internal/modules/cjs/loader.js:799:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
at Module.load (internal/modules/cjs/loader.js:666:32)
at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
at Function.Module._load (internal/modules/cjs/loader.js:598:3)

The text was updated successfully, but these errors were encountered:

Источник

Понравилась статья? Поделить с друзьями:
  • Mods cant be deployed vortex как исправить
  • Modprobe error could not insert vboxdrv operation not permitted
  • Modprobe error could not insert exec format error
  • Modoru error your current system software version is not supported ps vita
  • Mmtool error loading rom image 80000001h