question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gulp Sass Error with Yarn

See original GitHub issue

After running yarn, i’m having this issue with a dependency, node-sass.

           

Error: ENOENT: no such file or directory, scandir '/Users/manuelmadeira/Documents/cashyt/cashyt-dashboard/node_modules/node-sass/vendor'
    at Object.fs.readdirSync (fs.js:862:18)
    at Object.getInstalledBinaries (/Users/manuelmadeira/Documents/cashyt/cashyt-dashboard/node_modules/node-sass/lib/extensions.js:121:13)
    at foundBinariesList (/Users/manuelmadeira/Documents/cashyt/cashyt-dashboard/node_modules/node-sass/lib/errors.js:20:15)
    at foundBinaries (/Users/manuelmadeira/Documents/cashyt/cashyt-dashboard/node_modules/node-sass/lib/errors.js:15:5)
    at Object.module.exports.missingBinary (/Users/manuelmadeira/Documents/cashyt/cashyt-dashboard/node_modules/node-sass/lib/errors.js:45:5)
    at module.exports (/Users/manuelmadeira/Documents/cashyt/cashyt-dashboard/node_modules/node-sass/lib/binding.js:15:30)
    at Object.<anonymous> (/Users/manuelmadeira/Documents/cashyt/cashyt-dashboard/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (module.js:573:32)
    at Object.Module._extensions..js (module.js:582:10)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)
    at Function.Module._load (module.js:441:3)
    at Function.Module._load (/Users/manuelmadeira/Documents/cashyt/cashyt-dashboard/node_modules/gulp-hub/lib/load-subfile.js:26:32)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/manuelmadeira/Documents/cashyt/cashyt-dashboard/node_modules/gulp-sass/index.js:187:21)

They fixed the issue on a new version.

Can you help, please?

Thanks, Manuel

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

1reaction
Danitacommented, Nov 18, 2016

Try

nodejs node_modules/node-sass/scripts/install.js
npm rebuild node-sass
0reactions
bfcommented, Dec 12, 2016

Maybe this is an issue because we do npm install --save-dev gulp-sass instead of normal npm install --save gulp-sass? Maybe it is just not running the install script?

Read more comments on GitHub >

github_iconTop Results From Across the Web

gulp-sass | Yarn - Package Manager
gulp -sass can be used in tandem with gulp-sourcemaps to generate source maps for the Sass-to-CSS compilation. You will need to initialize gulp-sourcemaps ......
Read more >
error compiling node-sass on yarn install - Stack Overflow
As suggested on installation guide I'm launching yarn install to compile assets and I'm stopped while Building fresh packages (node-sass ...
Read more >
How to fix error "cannot find module gulp-sass" in Gulp
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...
Read more >
gulp-sass-error - npm
Throw error when gulp-sass fails. Useful for build tools. Latest version: 1.0.5, last published: 5 years ago. Start using gulp-sass-error in ...
Read more >
Install Error node-sass - Sylius Forum
Updating to gulp-sass 5.1 fixes the build error but now the yarn run gulp step won't work. Gulp-sass 5 requires explicit setting of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found