teambit / envs

Component development environments for the Bit community
https://bit.dev/bit/envs
Other
63 stars 9 forks source link

vue-compiler - Failed at the node-sass@4.13.1 postinstall script #120

Open MariusBongarts opened 4 years ago

MariusBongarts commented 4 years ago

I was following the tutorial to set up the vue compiler for my project. (https://docs.bit.dev/docs/tutorials/bit-vue-tutorial )

When installing the compiler with:

$bit import bit.envs/bundlers/vue --compiler

I am getting the error during the ensuring of package depencies: Failed at the node-sass@4.13.1 postinstall script.

I attached the complete log of this run.

It seems that the version of node-sass has to be reduced to 4.12.0. I tried to set the version in the package.json under .git\bit\components\bundlers\vue\bit.envs\2.6.11 but it seems that bit is overwriting the package.json after executing the command

2020-02-21T17_09_46_579Z-debug.log

KutnerUri commented 4 years ago

odd. I don't see node-sass at the dependencies tab, and newer versions of the compiler have "node-sass": "^4.7.2".

My suggestion is not to edit things under the /bit/ directory, bit stores it's models in mysterious and cached ways. You can always bit import the compiler and export a modified version to your own scope, which gives you maximum control. It's not very nice to debug, but I did that for a custom babel compiler, and it's at least stable.

  1. I see there are newer versions of the compiler, consider updating.
  2. I believe node-sass@4.13.1 came back to life, so the issue might be solved even for this version.

cheers!

davidfirst commented 4 years ago

@MariusBongarts , I'm unable to reproduce the issue. I tried also on a Windows machine and I don't get any error. I do see that it installs the 4.13.1 version. What happens if you only install node-sass?

(I'm moving the task to the envs repo).

Tallyb commented 4 years ago

@MariusBongarts - also, can you try the newer Vue compiler: $bit import bit.envs/compilers/vue --compiler