reactjs - create-react-app eintegrity 错误窗口

标签 reactjs npm

当我开始在我的 Windows 10 pc 中创建 React 应用程序时,我遇到了这些错误。请帮我解决这个问题。

PS F:\> npm install -g create-react-app
C:\Users\Harshit Singh\AppData\Roaming\npm\create-react-app -> C:\Users\Harshit Singh\AppData\Roaming\npm\node_modules\create-react-app\ind
ex.js
+ create-react-app@1.4.0
updated 1 package in 24.169s
PS F:\> create-react-app my-app

Creating a new React app in F:\my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
npm ERR! code EINTEGRITY
npm ERR! sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ= integrity checksum failed when using sha1: wanted sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ= but got sha1
-reRBygSiSrbV6gYVeXXD3kFgUvo=. (5518 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Harshit Singh\AppData\Roaming\npm-cache\_logs\2017-09-10T06_11_12_677Z-debug.log

Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting my-app / from F:\
Done.

最佳答案

试试:npm cache verify
或者更新 npm : npm i -g npm

关于reactjs - create-react-app eintegrity 错误窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46137992/

相关文章:

javascript - 从状态中删除特定项目

node.js - 如何从全局包运行 npm 脚本?

node.js - 使用 NPM 从私有(private)存储库安装包

node.js - 我无法启动 npm 并出现错误

npm - npm init -y 是什么意思

Javascript:通过过滤对象列表过滤对象列表

reactjs - React.HTMLProps<> 和 React.HTMLAttributes<T> 有什么区别?

reactjs - 如何在 react 中将数组从子组件传递到父组件我知道如何从父组件传递

reactjs - 使用带有 loading 和 freeSolo Prop 的 react material-ui 自动完成

npm - 创建 Yeoman 生成器后, `npm install` 是否应该需要 10 分钟才能运行,还是我做错了什么?