LouisBarranqueiro / hexo-theme-tranquilpeak

:lipstick: A gorgeous responsive theme for Hexo blog framework
https://louisbarranqueiro.github.io/hexo-theme-tranquilpeak/
GNU General Public License v3.0
1.86k stars 484 forks source link

Installation of npm dependencies fails #747

Closed Neurobion closed 1 month ago

Neurobion commented 1 month ago

Description

It is a clean installation of both LXC and the hexo framework itself, followed by this theme. It fails on nmp install.

Complete log: npm-install.txt

Expected behavior

Successful completion of installation

Steps to reproduce the bug

   13  apt-get install git-core
   14  apt-get install -y curl
   17  curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh
   18  chmod 755 nodesource_setup.sh
   19  ./nodesource_setup.sh
   20  apt-get install -y nodejs
   22  npm install -g hexo-cli
   33  hexo init test
   35  hexo server

This is OK = the blog is available in default settings.

   43  wget https://github.com/LouisBarranqueiro/hexo-theme-tranquilpeak/archive/main.zip
   51  mv hexo-theme-tranquilpeak-main/ tranquilpeak
   58  vim _config.yml
   59  cd themes/tranquilpeak/
   60  npm install && npm run prod

Environment

Neurobion commented 1 month ago

The problem seems to be caused by the node-sass library.

Author says:

Node Sass is no longer supported. Please use sass or sass-embedded instead.

I replaced it with the sass library. Because node-sass often has also problems with binary dependencies on newer systems. So the only change is in the package.json + tasks/config/sass.js file.

Everything else went smoothly. All that's left is to remove the vulnerabilities - but that's another problem.

root@app-web:/var/hexo/test/themes/tranquilpeak# npm install

up to date, audited 439 packages in 2s

67 packages are looking for funding
  run `npm fund` for details

8 vulnerabilities (1 moderate, 7 high)

To address issues that do not require attention, run:
  npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.