Here are the possible solutions you can try:
Deleting Node Modules and Cache
npm v5 and above:
npx rimraf ./**/node_modules
npm cache clear --force
npm install @ngrx/store
npm v4 or below:
npm install rimraf -g
rimraf .**
ode_modules
npm cache clear --force
npm install @ngrx/store
Legacy Peer Dependencies
Try to install with the legacy peer dependencies option which will ignore peerDependencies
while installing.
npm install @ngrx/store --legacy-peer-deps
Force
If that doesn't work, then try the force option.
npm install @ngrx/store --force
Different Version of @ngrx/store
If none of the options above work, you can try installing a different version of @ngrx/store
.
npm install @ngrx/store@10.0.0
Different version of node
& npm
Finally, as a last resort, you can try downgrading or upgrading your node
and npm
versions.
Here are instructions on how to do so.
Hope this helped!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…