shahryarjb

shahryarjb

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

Showing Posts 1 to 4

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)

shahryarjb

shahryarjb OP

can you give me your example package.json to see what version of (sass-loader , sass) do you use?

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.

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews