【发布时间】:2018-02-11 21:53:02
【问题描述】:
我无法安装 Angular Cli。每次我遇到完整性错误。我花了 3 个小时试图修复它,但我不能。我试图:
-卸载节点js
-清除缓存(强制)
-缓存验证
-强制安装
-重启电脑(终极方法)
一切都处于管理员模式,没有 vpn,没有工作网络,禁用了杀毒软件
我尝试了我在互联网上找到的所有内容。请帮帮我;(
编辑: 我在下面使用了力量,但我有同样的问题,没有力量,而不仅仅是角度 cli。我无法在新项目中安装节点模块。如果我还没有完整的 node_modules,我总是会收到此错误。总是有很多“npm WARN tar ENOENT:没有这样的文件或目录,打开...”和 sha512 的完整性。我在 npm 上安装了很多版本,而且总是一样的。
edit:我的心情现在好多了,因为我的朋友给我展示了纱线,现在一切正常。
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
【问题讨论】:
-
我无法使用 npm 安装任何东西 - 更新。
-
你终于找到解决办法了吗?
-
我记得我刚用过 Yarn,它解决了问题。纱线以同样的方式帮助了我很多次。
标签: angular command-line-interface