The following error is reported when executing npm install on the command line:
D:\frontend\viewsdev>npm install npm ERR! code EINTEGRITY npm ERR! sha512-8qtu6VYSXUExVPx6H8s8+OhQo0UQP7ogAoOa2bOPCvnhlpaGVYf3yh45WNa7PhhdWSOGQW3DdblqMX8UJ7Cu6g== integrity checksum failed when using sha512: wanted sha512-8qtu6VYSXUExVPx6H8s8+OhQo0UQP7ogAoOa2bOPCvnhlpaGVYf3yh45WNa7PhhdWSOGQW3DdblqMX8UJ7Cu6g== but got sha512-OvgW+e/pBS2QuX5CTDaaE+DM62t8mMk+IJfcpE3Zv1DC03DwoOKcyqRHlA+lkXWahSOPmvYZJSEDUKX0nOeLDw==. (4954746 bytes)
Later, it was found that it was a problem with the npm version and needed to be updated to the latest version:
D: \ frontend \ viewsdev> npm install - g npm C:\Users\wulf\AppData\Roaming\npm\npx -> C:\Users\wulf\AppData\Roaming\npm\node_modules\npm\bin\npx-cli.js C:\Users\wulf\AppData\Roaming\npm\npm -> C:\Users\wulf\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js + [email protected] added 396 packages in 45.85s
Re-install successfully:
D:\frontend\viewsdev>npm install > [email protected] preinstall D:\frontend\viewsdev > npm install ./local_modules/my-htmlone ./local_modules/my-url-loader npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated [email protected]: the module is now available as 'css-select' npm WARN deprecated [email protected]: the module is now available as 'css-what' npm WARN [email protected] requires a peer of file-loader@* but none is installed. You must install peer dependencies yourself. npm WARN [email protected] No repository field. + [email protected] + [email protected] updated 2 packages and audited 131 packages in 12.198s found 3 vulnerabilities (2 low, 1 moderate) run `npm audit fix` to fix them, or `npm audit` for details npm WARN deprecated [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! npm WARN deprecated [email protected]: Has been renamed to https://www.npmjs.com/package/webpack-stream npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated [email protected]: react-tools is deprecated. For more information, visit https://fb.me/react-tools-deprecated npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js > [email protected] install D:\frontend\viewsdev\node_modules\node-sass > node scripts/install.js Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.2/win32-x64-57_binding.node Download complete ] - : Binary saved to D:\frontend\viewsdev\node_modules\node-sass\vendor\win32-x64-57\binding.node Caching binary to C:\Users\wulf\AppData\Roaming\npm-cache\node-sass\4.9.2\win32-x64-57_binding.node > [email protected] postinstall D:\frontend\viewsdev\node_modules\node-sass > node scripts/build.js Binary found at D:\frontend\viewsdev\node_modules\node-sass\vendor\win32-x64-57\binding.node Testing binary Binary is fine npm WARN [email protected] requires a peer of jquery@>=1.8.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of node-sass@^3.4.2 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) added 1243 packages from 760 contributors and audited 9576 packages in 186.808s found 22 vulnerabilities (8 low, 10 moderate, 4 high) run `npm audit fix` to fix them, or `npm audit` for details
Read More:
- Vue-element-admin Use npm install Error: npm ERR! Error while executing:
- npm install npm ERR code ERESOLVE [How to Solve]
- NPM Install Error: npm ERR! ERESOLVE unable to resolve dependency tree
- Analysis of npm error ENOTFOUND npm ERR! network request to https://npm.***.com/*** failed and the role of the .npmrc file
- NPM install error: Cannot find module ‘D:\zip\node_modules\npm\bin\npm-cli.js‘
- Vue Error: command failed: npm install –loglevel error –registry=https://registry.npm.taobao.org
- [Solved] npm install sass@~1.32 sass-loader deepmerge -D Install Error
- Puppeteer Error: Chromium revision is not downloaded. Run “npm install“ or “yarn install“
- [Solved] This usually happens because your environment has changed since running `npm install`
- Vue Package Error: npm ERR! missing script: build
- NPM install Error cb.apply is not a function
- [Solved] Mac Notebook M1 Chip Install Hashlips library npm error
- NPM install -g create-react-app [How to Solve]
- [Solved] NPM Install Error: EPERM: operation not permitted, mkdir xxx
- [Solved] NPM install error: Maximum call stack size exceeded
- [Solved] ERROR command failed: npm install –loglevel error –legacy-peer-deps
- [Solved] NPM Error: gyp: No Xcode or CLT version detected!
- Commit failed – exit code 1 received, with output: ‘>running pre-commit hook: npm run precommit (Fixed)
- Cli Write Error: This is related to npm not being able to find a file. [Solved]
- NPM start project error: cannot find module ‘webpack’ problem solution