This repository was archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
Installing node-sassusing latest Yarn results in ENOENT for node-sass/vendor #1804
Copy link
Copy link
Closed
Labels
Description
Steps I did:
- Installed fresh new Yarn 0.17.0 using
npm install yarn -g
- Removed both
node_modules
andyarn.lock
from my project's root - Ran
yarn
to install dependencies from project'spackage.json
(including node-sass 3.12.2) - Ran a webpack task which uses node-sass
Result:
fs.js:951
return binding.readdir(pathModule._makeLong(path), options.encoding);
^
Error: ENOENT: no such file or directory, scandir '/home/jbruni/project/node_modules/node-sass/vendor'
at Error (native)
at Object.fs.readdirSync (fs.js:951:18)
at Object.getInstalledBinaries (/home/jbruni/project/node_modules/node-sass/lib/extensions.js:121:13)
at foundBinariesList (/home/jbruni/project/node_modules/node-sass/lib/errors.js:20:15)
at foundBinaries (/home/jbruni/project/node_modules/node-sass/lib/errors.js:15:5)
at Object.module.exports.missingBinary (/home/jbruni/project/node_modules/node-sass/lib/errors.js:45:5)
at module.exports (/home/jbruni/project/node_modules/node-sass/lib/binding.js:15:30)
at Object.<anonymous> (/home/jbruni/project/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
Important:
-
If I do
npm rebuild node-sass
and run the task again, everything goes well. The error vanishes. -
I have done the procedure described in the steps above several times lately, and it has been working.
-
It seems Yarn used to automatically run the "build node-sass" process, but it is not doing anymore.
I can't tell if this is due to Yarn (likely to be) or node-sass, because both had new releases today. I'm only reporting for your acknowledgement, so you can proceed with the appropriate action.
Thank you.
- YARN version (
yarn --version
): 0.17.0 - NPM version (
npm -v
): 3.10.8 - Node version (
node -v
): v6.7.0 - Node Process (
node -p process.versions
):
{ http_parser: '2.7.0',
node: '6.7.0',
v8: '5.1.281.83',
uv: '1.9.1',
zlib: '1.2.8',
ares: '1.10.1-DEV',
icu: '57.1',
modules: '48',
openssl: '1.0.2j' }
- Node Platform (
node -p process.platform
): linux - Node architecture (
node -p process.arch
): x64 - node-sass version (
node -p "require('node-sass').info"
):
node-sass 3.12.2 (Wrapper) [JavaScript]
libsass 3.3.6 (Sass Compiler) [C/C++]
- npm node-sass versions (
npm ls node-sass
):
/home/jbruni/project
└── node-sass@3.12.2
karol-f, vladshcherbin, sohara, jacobmischka, tomcorke and 17 more