I was able to fix this by running the command prompt/bash as admin and closing VSCode!
Seems like VSCode was locking some files.
Potentially something else could be locking these files for you.
More Related Contents:
- Pass command line args to npm scripts in package.json
- Field ‘browser’ doesn’t contain a valid alias configuration
- Do I need both package-lock.json and package.json?
- npm equivalent of yarn resolutions?
- How can I reference package version in npm script?
- What does “npm audit fix” exactly do?
- What’s the difference between dependencies, devDependencies and peerDependencies in npm package.json file?
- How to set environment variables from within package.json?
- Is there a way to get version from package.json in nodejs code?
- What is the role of the package-lock.json?
- What is the difference between “npm install” and “npm ci”?
- How to use private Github repo as npm dependency
- Message “npm WARN config global `–global`, `–local` are deprecated. Use `–location=global` instead”
- how to install multiple versions of package using npm
- 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
- On npm install: Unhandled rejection Error: EACCES: permission denied
- Error ‘tunneling socket’ while executing npm install
- create-react-app dependency version issues with React 18
- What is the “module” package.json field for?
- How do I fix a vulnerable npm package in my package-lock.json that isn’t listed in the package.json?
- How to fix EACCES issues with npm install
- What is the difference between npm-shrinkwrap.json and package-lock.json?
- How to set env var for .npmrc use
- Running Mocha 6 ES6 tests with Babel 7, how to set up?
- What’s the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file?
- How do I decide whether @types/* goes into `dependencies` or `devDependencies`?
- 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”