Error installing Angular using npm due to require-from-string

后端 未结 6 805
名媛妹妹
名媛妹妹 2020-11-29 09:00

How to resolve this error as I am not able to install Angular.

Please see the below exception:

C:\\Users\\absin\\node>npm install -g @angular/cli
         


        
6条回答
  •  囚心锁ツ
    2020-11-29 09:54

    as stated in the issue link:

    temporal solution: npm install https://github.com/floatdrop/require-from-string/tarball/v1.1.0 --save npm install

    UPDATE:

    It appears they are working on it. The require-from-string page used to return a 404, but at least now it loads the correct page on NPM's website: https://www.npmjs.com/package/require-from-string

    Still doesn't appear to be working through npm install yet.

    UPDATE 2:

    An official response from NPM: https://status.npmjs.org/incidents/41zfb8qpvrdj

    UPDATE 3: issue seems to be resolved.

提交回复
热议问题