rammcodes / Dopefolio

Dopefolio 🔥 - Portfolio Template for Developers 🚀
https://dopefolio.netlify.app
GNU General Public License v3.0
3.31k stars 667 forks source link

`npm install` does not work #29

Open bnzone opened 1 year ago

bnzone commented 1 year ago

Using node 16 or 18 the installation script seems to be failing

prateeksamudrala commented 1 year ago

Assuming it is "npm ERR! code 1 command failed"

It occurs when you aren't able to install a specific NPM package with your version of Node.js.

To solve the error, install a version of the package that is compatible with your Node.js version and update your dependencies.

Assuming your error is with node-sass package. Here is how to solve it:

Note: If your error is a different package, replace node-sass with that package name. The second line of the error should show which error it is.

npm install node-sass@latest --legacy-peer-deps npx npm-check-updates -u `# [npm-check-updates] package to update your package.json dependencies to the latest version.

`npm install

tnajim commented 1 year ago

No error message? If it's the same as my problem, you might need to have python installed on your device to compile the node-sass package