无法安装@ angular / cli - Eintegrity错误

时间:2017-10-22 14:49:14

标签: angular command-line-interface

我无法安装角度Cli。每次我得到eintegrity错误。我花了3个小时试图解决它,但我不能。我试着:

-uninstall node js

-clear cache(with force)

-cache验证

-force installation

-restart计算机(终极方法)

管理模式下的所有内容,没有vpn,没有工作网,禁用防病毒

我尝试了我在互联网上找到的一切。请帮帮我;(

编辑: 我在下面使用了力量,但我有同样的问题,没有力,不仅有角度cli。我无法在新的项目中安装节点模块。如果我没有完整的node_modules我总是遇到这个错误。总是有很多“npm WARN tar ENOENT:没有这样的文件或目录,打开......”和Eintegrity与sha512。我在npm上安装了很多版本并且总是一样。

编辑:现在我的心情好多了因为我的朋友告诉我纱线,现在一切正常。

            Your environment has been set up for using Node.js 6.11.4 (x64) and npm.

            C:\Users\Dawid>npm install -g -f @angular/cli@latest
            npm WARN using --force I sure hope you know what you are doing.
            npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\d-633b314c\lazy.js'
            npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\d-633b314c\index.js'
            npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\d-633b314c\auto-bind.js'
            npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\d-633b314c\.lint'
            npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\d-633b314c\CHANGES'
            npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\d-633b314c\.travis.yml'
            npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\es5-ext-56220b73\math\cosh\implement.js'
            npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\es5-ext-56220b73\math\cosh\index.js'
            npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\es5-ext-56220b73\math\cosh\is-implemented.js'
            npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\es5-ext-56220b73\math\cosh\shim.js'
            npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\es5-ext-56220b73\math\expm1'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: form-data@2.3.1 (node_modules\@angular\cli\node_modules\form-data):
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sha1-b7lPvXGIUwbXPRXMSX/kzE7NRL8= integrity checksum failed when using sha1: wanted sha1-b7lPvXGIUwbXPRXMSX/kzE7NRL8= but got sha1-cwaoKAk10aif5UUfbvycU0fVc+o=. (2235 bytes)
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: json-schema@0.2.3 (node_modules\@angular\cli\node_modules\json-schema):
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= integrity checksum failed when using sha1: wanted sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= but got sha1-aO5Xvx8ASSTgupMMAxQGzuuoBSA=. (10511 bytes)
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: domelementtype@1.3.0 (node_modules\@angular\cli\node_modules\domelementtype):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\domelementtype-5c1c5adb'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: domain-browser@1.1.7 (node_modules\@angular\cli\node_modules\domain-browser):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\domain-browser-268370f4'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: extend@3.0.1 (node_modules\@angular\cli\node_modules\extend):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\extend-646b29c8'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ee-first@1.1.1 (node_modules\@angular\cli\node_modules\ee-first):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\ee-first-e23bb72b'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: etag@1.8.1 (node_modules\@angular\cli\node_modules\etag):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\etag-de690361'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: lower-case@1.1.4 (node_modules\@angular\cli\node_modules\lower-case):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\lower-case-1473f9a4'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: d@1.0.0 (node_modules\@angular\cli\node_modules\d):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\d-633b314c'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: har-validator@5.0.3 (node_modules\@angular\cli\node_modules\har-validator):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\har-validator-271be468'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: macaddress@0.2.8 (node_modules\@angular\cli\node_modules\macaddress):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\macaddress-553650c3'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: es6-weak-map@2.0.2 (node_modules\@angular\cli\node_modules\es6-weak-map):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\es6-weak-map-2432804b'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mime-db@1.30.0 (node_modules\@angular\cli\node_modules\mime-db):
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE= integrity checksum failed when using sha1: wanted sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE= but got sha1-dIV2fpdjOEij6vaVp2dkYwo6uC4=. (4996 bytes)
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: glob-parent@2.0.0 (node_modules\@angular\cli\node_modules\glob-parent):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\glob-parent-c87994bf'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: es5-ext@0.10.35 (node_modules\@angular\cli\node_modules\es5-ext):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\es5-ext-56220b73'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: hoek@4.2.0 (node_modules\@angular\cli\node_modules\hoek):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\hoek-ac39987c'
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: is-svg@2.1.0 (node_modules\@angular\cli\node_modules\is-svg):
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'C:\Users\Dawid\AppData\Roaming\npm\node_modules\.staging\is-svg-e8b32946'

            npm ERR! code EINTEGRITY
            npm ERR! sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== integrity checksum failed when using sha512: wanted sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== but got sha512-uUh9//t3qqpwoxIkrBwDoBAab1jurLlefDXZEHigrk9a3K5cPM9P1snG7WDhiSHqjwdQJ10oowj1m055+KEopw==. (2238 bytes)

            npm ERR! A complete log of this run can be found in:
            npm ERR!     C:\Users\Dawid\AppData\Roaming\npm-cache\_logs\2017-10-22T14_21_13_622Z-debug.log

            C:\Users\Dawid>

有日志文件: http://s000.tinyupload.com/index.php?file_id=02743975547384832802

1 个答案:

答案 0 :(得分:0)

尝试使用管理员命令提示符运行安装。