Restore ownership of the user’s npm related folders, to the current user, like this:
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
More Related Contents:
- How to fix npm throwing error without sudo
- Pass command line args to npm scripts in package.json
- What is the role of the package-lock.json?
- What is the difference between “npm install” and “npm ci”?
- npm install errors with Error: ENOENT, chmod
- Message “npm WARN config global `–global`, `–local` are deprecated. Use `–location=global` instead”
- how to install multiple versions of package using npm
- Field ‘browser’ doesn’t contain a valid alias configuration
- How do I correctly upgrade angular 2 (npm) to the latest version?
- How to fix SSL certificate error when running Npm on Windows?
- Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
- Npm audit fix –force react script downgrade automatically
- Do I need both package-lock.json and package.json?
- NPM doesn’t install module dependencies
- Error ‘tunneling socket’ while executing npm install
- npm equivalent of yarn resolutions?
- create-react-app dependency version issues with React 18
- Difference between npm start and npm run start
- Error: EPERM: operation not permitted, unlink ‘D:\Sources\**\node_modules\fsevents\node_modules\abbrev\package.json’
- How can I reference package version in npm script?
- How to fix EACCES issues with npm install
- Error in starting hyperledger fabric network with hyperledger composer
- How to view the dependency tree of a given npm module?
- What is the difference between npm-shrinkwrap.json and package-lock.json?
- What does “npm audit fix” exactly do?
- Running Mocha 6 ES6 tests with Babel 7, how to set up?
- Is there a difference between `npm start` and `npm run start`?
- webpack is not recognized as a internal or external command,operable program or batch file
- How to solve npm install error “npm ERR! code 1”
- How to avoid React loading twice with Webpack when developing