NPM install-g @angular/cli@latest failure _typescript

Source: Internet
Author: User
Tags sha1

The first error message is

Error "@angular/COMPILER-CLI" package is not properly installed

The following error information appears in the attempted scenario two o'clock

NPM err! Code eintegrity
NPM err! sha1-omjbxbx6n5nvnwrvkffdgvdt2dq= Integrity checksum failed when using sha1:wanted sha1-omjbxbx6n5nvnwrvkffdgvdt2dq= But got sha1-pvzuut5szaqjmvkcciwuicpr9ky=. (259028 bytes)

NPM err! A Complete log of this run can is found in:
NPM err! C:\Users\sp\AppData\Roaming\npm-cache_logs\2017-09-20T04_31_14_778Z-debug.log

Tried a variety of scenarios

Scenario One (failed)

Clear Cache

NPM Cache Verify

Programme II (failure)

1.Uninstall and Clean (global)

RM-RF node_modules Dist
npm uninstall-g @angular/cli
NPM Cache Verify

2.Reinstall and Play (global)

NPM install-g @angular/cli@latest
npm install
ng serve

The ultimate solution is

Grep-ir "sha1-omjbxbx6n5nvnwrvkffdgvdt2dq= Integrity Checksum" (NPM's installation directory)

Run NPM Install again

The typescript and angular CLI are then updated globally, and the typescript and angular CLI are updated by the directory
Ng Server completes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.