Error running npm install

Asked

Viewed 452 times

0

I just installed linux Deepin on my pc, installed Node.js 10.0.6 along with npm 6.0.4. When running npm install , he of the error, so I executed the following command: npm audit fix --force and I got the following result:

npm WARN using --force I sure hope you know what you are doing.

> [email protected] install /home/user/Documents/helloWorld/node_modules/fsevents
> node install

sh: 1: node: Permission denied

> [email protected] install /home/user/Documents/helloWorld/node_modules/node-sass
> node scripts/install.js

sh: 1: node: Permission denied

> [email protected] postinstall /home/user/Documents/helloWorld/node_modules/node-sass
> node scripts/build.js

sh: 1: node: Permission denied
added 200 packages from 137 contributors in 4.998s
fixed 0 of 0 vulnerabilities in 3520 scanned packages

How can I solve this defect ?

1 answer

1


You can try running the command after assigning the appropriate permissions:

npm config set user 0
npm config set unsafe-perm true

And then, rotate your command:

npm audit fix --force

Source: Github Issue

Browser other questions tagged

You are not signed in. Login or sign up in order to post.