Dopefolio icon indicating copy to clipboard operation
Dopefolio copied to clipboard

`npm install` does not work

Open bnzone opened this issue 2 years ago • 3 comments

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

bnzone avatar Jan 31 '23 18:01 bnzone

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`

prateeksamudrala avatar Feb 20 '23 06:02 prateeksamudrala

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

tnajim avatar Jul 25 '23 09:07 tnajim