Error EINTEGRITY encountered while installing [email protected] with the win-64 msi package

Update: After further investigation, I've found that this issue specifically occurs with the 64-bit Windows MSI installer and not the 32-bit MSI installer.

I have attempted all of the recommended solutions provided in other responses:

  • Delete package-lock.json (file does not exist)
  • Delete node_modules directory (no improvement)
  • Run 'npm cache verify' command (message indicates "corrupted content removed" every time)
  • Force clean npm cache using 'npm cache clean --force' (no change)
  • Delete 'AppData/Local/npm-cache' directory (issue persists)
  • Delete 'AppData/Roaming/npm' directory (problem remains)
  • Reinstall npm globally with 'npm i -g npm' (no success)
  • Set 'package-lock' configuration to false (no effect)
  • Performed fresh installations of Windows 10 and 11 (did not resolve the problem)
  • Disabled auto-proxy settings (issue unchanged)

The failure consistently occurs for [email protected]. I am at a loss for what steps to take next, as this prevents me from installing Angular CLI successfully.

  • What is the expected sha512 checksum for [email protected]?
  • Is there a way to disable EINTEGRITY checks?
  • Are there any other potential solutions that I may have overlooked?

$ npm i npm WARN tarball tarball data for [email protected] (sha512-qTjK4MWnYtQHCMGg2qDUqeFYXfVvYq5qJkQTIsOV4VZCknoYePVaDTG9ygEB9Ct0kc0DWs7IrS6Ja+GjY62Kzw==) appears to be corrupted. Retrying installation...

... multiple instances of "appears to be corrupted"

npm WARN tarball tarball data for [email protected] (sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==) seems to be corrupted. Retrying installation...

npm ERR! code EINTEGRITY npm ERR! sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA== integrity check failed for sha512: expected sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA== but received sha512-U0dCcrUYPNLvBHhB3AuhIqz7zrcg2z2u5LCqmZVNN/aUqimo+p2cVyQ1kFsbc9XMmh8tNFcOkuY0itp0Yz31fQ==. (11280693 bytes)

npm ERR! Detailed log of this operation can be found at: npm ERR! C:\Users\chuck\AppData\Local\npm-cache_logs\2022-02-10T02_23_03_444Z-debug-0.log

Additionally, whenever I verify my cache, it detects new files as corrupted and deletes them automatically.

c:\Users\chuck\git\test>npm cache verify Cache verification completed successfully (~\AppData\Local\npm-cache_cacache) Verified content: 45 files (10072506 bytes) Index entries: 70 Completed in 0.151 seconds

c:\Users\chuck\git\test>npm cache verify Cache verification completed successfully (~\AppData\Local\npm-cache_cacache) Verified content: 44 files (10066799 bytes) Corrupted content removed: 1 file Garbage-collected content: 1 item (5707 bytes) Missing content: 2 files Index entries: 68 Completed in 0.188 seconds

c:\Users\chuck\git\test>npm cache verify Cache verification completed successfully (~\AppData\Local\npm-cache_cacache) Verified content: 40 files (9155292 bytes) Corrupted content removed: 4 files Garbage-collected content: 4 items (911507 bytes) Missing content: 6 files Index entries: 62 Completed in 0.178 seconds

c:\Users\chuck\git\test>npm cache verify Cache verification completed successfully (~\AppData\Local\npm-cache_cacache) Verified content: 37 files (8712984 bytes) Corrupted content removed: 3 files Garbage-collected content: 3 items (442308 bytes) Missing content: 4 files Index entries: 58 Completed in 0.155 seconds

It almost feels like the sha512 values are being generated randomly each time.

Answer №1

After some troubleshooting, I managed to solve the issue by replacing the 64-bit version of node with the 32-bit one on my Windows system. As a result, all the corruption and EINTEGRITY errors that were plaguing me have disappeared!

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The "change" event listener in Angular 4 triggers only on the first occurrence

I am facing an issue with my selection dropdown where the data changes based on the selection made. The dropdown works fine initially, but it fails to update again unless I reload or redirect. getLogs(){ document.getElementById("placeSelect").addEve ...

Is the boolean condition in my Angular template not updating properly when the state changes?

I am attempting to modify a template when a specific pie chart slice is clicked. Here is the template code: <h1>{{slice && slice.name}}</h1> <h1>{{slice && slice.value}}</h1> Check out this demo: https://st ...

Problem encountered when trying to export a variable using TypeScript

I am encountering an issue with my TypeScript file: let constants = { urls: { delegates: { AUTHENTICATION: { LOGIN: "auth/pub/login", // User Login (POST) LOGOUT: ...

The NumpadTouchControl export is missing from the module

Currently, I am in the process of creating a custom directive using Angular 1.4.9 and TypeScript. The directive itself is complete, however, I am facing an issue when trying to import it into my app.ts file for registration. This is how my directive is st ...

What could be causing the error with the async pipe: "InvalidPipeArgument: '[object Object],[object Object],' for the pipe 'AsyncPipe'?"

I am working on implementing search functionality in a table using ng-bootstrap. However, I am encountering an error with the async pipe that says "InvalidPipeArgument: '[object Object],[object Object],[object Object],[object Object],[object Object]&a ...

What are the steps to implementing dependency injections in Angular 2?

I have created an AuthService and I am looking to utilize it across all my components. My goal is to maintain a global userLoggedIn value for all components. However, I encountered the following error when running the script - Property 'userLoggedIn&a ...

Failed installation of Knex using npm

Encountering an error message while trying to install Knex using npm install knex --save via the command line. Has anyone else faced this issue before or have any recommended solutions? https://i.sstatic.net/c8pgf.png ...

Retrieve only the package.json file of a package using npm and output it to the console

There are times when I need to analyze the dependencies of a package without downloading it completely. Is there a simple method to only extract the package.json file and display it in stdout? ...

Utilizing TypeScript's higher-order components to exclude a React property when implementing them

Trying to create a higher-order component in TypeScript that takes a React component class, wraps it, and returns a type with one of the declared properties omitted. Here's an attempt: interface MyProps { hello: string; world: number; } interfac ...

What is the reason behind Ramda having multiple curry functions in its source code, much like Redux having multiple compose functions?

There are _curry1, _curry2, _curry3, and _curryN functions within the depths of Ramda's source code This interesting pattern is also utilized in the redux compose function I find myself pondering: why did they choose this intricate pattern over a mo ...

Trigger a method within a component when there is a change in the Vuex state

I need to trigger a method inside a component whenever the vuex state changes in TypeScript and Vue.js. While I can access the vuex state value using getters in the template, I am unsure how to access the data within the component class. The vuex state is ...

Validate an array of strings using Typescript custom type

Recently, I attempted to verify whether a variable is a custom type made up of different strings. I came across this helpful post Typescript: Check "typeof" against custom type that explains how to create a validator for this specific type. cons ...

Exploring npm: effectively managing package.json files

I'm in the process of developing a reusable NPM module and I've encountered an issue. According to the tutorial I'm following, I need to have a package.json file in the dist folder. Initially, I copied the package.json file from the project ...

Monitoring the Progression of Array Sequence

I am facing an issue with tracking changes in an array before and after it is reordered. I have two variables, originalOrder and rulesetOrder. My component is connected to rulesetOrder, so when I move an item, the array updates according to its new index. ...

Utilize the .mat-column-name attributes to apply custom styles to a nested component within Angular Material

Within the Child component, an Angular material table is created with columns passed as input: <table mat-table> <ng-container *ngFor="let col of columns" [matColumnDef]="col"> </table> @Input() columns: string[] T ...

Validating minimum and maximum values with Angular 2 FormBuilder

I am currently developing a form using Angular 2 Formbuilder and I want to ensure that users can only input positive values into the amount field (with a minValue of 0 and maxValue of 100). How can I go about implementing minimum and maximum value validati ...

What is the best way to implement this object builder in TypeScript strict mode without adding unnecessary weight to it?

After coming across a builder pattern online that I really liked, I found that it doesn't work in strict mode due to receiving the same error for the first 3 properties: (property) PizzaBuilder.numberOfSlices: number Property 'numberOfSlices&apo ...

Two distinct approaches for user interface and application programming interface

Here's a non-technical question that's been on my mind lately. I've noticed that developers often create separate projects for their Angular applications using Visual Studio Code, and separate projects for their .NET Core Web API applicatio ...

Leverage the power of TypeScript in combination with react-intl for

In my application, I am utilizing react-intl. Here is the code snippet: const intl = useIntl(); const test = makeTest(error, intl.formatMessage); // call test in another file: const run = (error: ApolloError, formatMessage): string => { ... }; ...

Is there a way to ensure that NPM retrieves the latest commit of a package from a repository's master branch?

I am facing a challenge with utilizing multiple packages stored in a Gitlab repository for my internal projects. While NPM is efficient at handling tags, creating a new tag for every commit is not feasible. "dependencies": { "XX-alert": "git+http://git. ...