shahryarjb

shahryarjb

Problem to install node-sass HTTP error 404 Not Found

Hello, I want to install phoenix in alpine linux, but when I want to install package.json phoenix 1.5.10 it shows me this error

#16 17.79 > node-sass@4.14.1 install /app/apps/mishka_html/assets/node_modules/node-sass
#16 17.79 > node scripts/install.js
#16 17.79
#16 18.17 Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux_musl-x64-93_binding.node
#16 19.66 Cannot download "https://github.com/sass/node-sass/releases/download/v4.14.1/linux_musl-x64-93_binding.node":
#16 19.66
#16 19.66 HTTP error 404 Not Found

I searched and I found this page Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.0/win32-x64-79_binding.node" · Issue #2773 · sass/node-sass · GitHub and it didn’t fix my problem. then I update "node-sass": "^4.13.1", to --> 6.0.1, then npm let me finish my installation but I have not-compatible error in my phoenix when I start iex -S mix phx.server

I think I should update "sass-loader" and some dependencies

Thanks please help me to update my package.json

node lts
npm@6.14.14
phoenix 1.5.10
elixir 1.12.0
with docker

Marked As Solved

tomkonidas

tomkonidas

Dart Sass is the proper replacement for node-sass.

As stated in Node Sass

Warning: LibSass and Node Sass are deprecated. While they will continue to receive maintenance releases indefinitely, there are no plans to add additional features or compatibility with any new CSS or Sass features. Projects that still use it should move onto Dart Sass.

You should be able to just replace node-sass with the new dart sass and not have any problems. (From memory I don’t remember having to update any other lib)

Also Liked

tomkonidas

tomkonidas

This is from a project with Tailwind + AlpineJS

{
  "repository": {},
  "scripts": {
    "deploy": "webpack --mode production",
    "watch": "webpack --mode development --watch"
  },
  "dependencies": {
    "phoenix": "file:../deps/phoenix",
    "phoenix_html": "file:../deps/phoenix_html",
    "phoenix_live_view": "file:../deps/phoenix_live_view",
    "topbar": "^0.1.4",
    "alpinejs": "^2.8.0"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
    "@tailwindcss/forms": "0.3.3",
    "@tailwindcss/jit": "0.1.18",
    "@tailwindcss/typography": "0.4.1",
    "autoprefixer": "10.3.1",
    "babel-loader": "^8.0.0",
    "copy-webpack-plugin": "^5.1.1",
    "css-loader": "^3.4.2",
    "hard-source-webpack-plugin": "^0.13.1",
    "mini-css-extract-plugin": "^0.9.0",
    "optimize-css-assets-webpack-plugin": "^5.0.1",
    "postcss": "8.3.5",
    "postcss-loader": "4.3.0",
    "sass": "1.35.2",
    "sass-loader": "^8.0.2",
    "tailwindcss": "2.2.4",
    "terser-webpack-plugin": "^2.3.2",
    "webpack": "^4.41.5",
    "webpack-cli": "^3.3.2"
  }
}
dimitarvp

dimitarvp

This is much appreciated, thank you.

Where Next?

Popular in Questions Top

jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36820 110
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31586 112
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New

We're in Beta

About us Mission Statement