Npm install Error - install issue
KirisameMarisas opened this issue · 4 comments
Description
Npm reports Error after I running the command "npm install" .Is the version compatibility issue?
Expected behavior
Install the theme correctly.
Steps to reproduce the bug
Run "npm install" in theme folder
Environment
- Operating system with version : Ubuntu20.04.2 (WSL2 in Windows10 2004)
- Node version: v16.6.1
- Hexo version: 5.4.0
- Hexo-cli version: 4.3.0
- Tranquilpeak version: original 4.1.2
- Site configuration file:
- Theme configuration file:
- Hexo plugin:
├── hexo-generator-archive@1.0.0
├── hexo-generator-category@1.0.0
├── hexo-generator-index@2.0.0
├── hexo-generator-tag@1.0.0
├── hexo-renderer-ejs@1.0.0
├── hexo-renderer-marked@4.0.0
├── hexo-renderer-stylus@2.0.1
├── hexo-server@2.0.0
├── hexo-theme-landscape@0.0.3
└── hexo@5.4.0
Additional information
It seems the error that causes on hexo-renderer-sass doesn't change dependencies version. I reported this bug on the project issue.
Also a lot of security vulnerabilities in old version dependencies.
- I can fix this bug
👋 @KirisameMarisas, It might be related to node v16. Could you please try with the active LTS version -> node v14? https://nodejs.org/en/about/releases/
I have tried with node v14, but it still have this problem. And I fix it with modifying the package.json file , change "node-sass" from 5.0.0 to 6.0.0 and the problem is solved.
By the way , some dependencies have high-risk vulnerabilities because of old version , using safer dependencies or trying to implement it as safe as possible.
I see. thanks for the tip. I'm gonna release a new version of the theme with updated dependencies.
done 🙂