npm install ->Failed at the node-sass@4.5.0 postinstall script

后端 未结 17 1857
梦谈多话
梦谈多话 2021-01-30 08:02

I\'m trying to do npm install and an error appears :

Failed at the node-sass@4.5.0 postinstall script.

I tried to delete no

17条回答
  •  暖寄归人
    2021-01-30 08:52

    I needed to take the following steps to "resolve" this problem:

    1. Create folder at the root: mkdir ~/safe_node_module;
    2. Download package wget -q https://github.com/sass/node-sass/releases/download/v4.13.0/linux-x64-72_binding.node and then send to the folder created in step 1;
    3. Set the export environment variable export SASS_BINARY_PATH=/home/ronaldaraujo/safe_node_module/linux-x64-72_binding.node;
    4. Install packages normally npm i;

提交回复
热议问题