ABenassi87 / ngx-text-diff

A Text Diff component for Angular
https://ngx-text-diff.herokuapp.com/home
50 stars 44 forks source link

npm ERR! Invalid tag name "^>=6.0.0": Tags may not have any characters that encodeURIComponent encodes #62

Open eranitach opened 3 years ago

eranitach commented 3 years ago

Hi, first of all, thank you for the library. Very helpful..

Lastly, I got the error above when I do npm install, it occurred in npm v 7.5.2. However, With npm version 6.14.11 I just see warnings only and there are no errors at all.

You can see below the char that cause this issue --> ^. Can you remove it please?

npm WARN ngx-text-diff@0.6.0 requires a peer of @angular/core@^>=6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN ngx-text-diff@0.6.0 requires a peer of @angular/forms@^>=6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN ngx-text-diff@0.6.0 requires a peer of @angular/cdk@^>=6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN ngx-text-diff@0.6.0 requires a peer of rxjs@~6.3.3 but none is installed. You must install peer dependencies yourself.

BTW, I'm using angular core 9.0.3 and its still show me this warnings...

davidbirt commented 3 years ago

Having the same issue on my machine

apuredol commented 3 years ago

Same from here!

ursmeier-mercatus commented 3 years ago

Any news on this? We have the same problem.

zvandehy commented 3 years ago

Any updates on this? Or does anyone know a work-around?

paulhickman-a365 commented 2 years ago

A workaround is to run:

npm i ngx-text-diff --legacy-peer-deps

Which will make npm ignore the syntax errors in semantic versions.

leepowers commented 2 years ago

Encountered this error message as well. Fix by paulhickman-a365 worked for me.

vishalbiradar commented 2 years ago

@ABenassi87 After doing npm i ngx-text-diff --legacy-peer-deps, the angular app is unable to start. Getting below error Cannot find module 'minizlib'

Angular Version: 7.2.0 ngx-text-diff version: 0.6.0

JonathanJBM commented 2 years ago

A workaround is to run:

npm i ngx-text-diff --legacy-peer-deps

Which will make npm ignore the syntax errors in semantic versions.

It worked for me

MYHINDA commented 1 year ago

hava the same problem when installing 'axios' screenshot

JonathanJBM commented 1 year ago

hava the same problem when installing 'axios' screenshot

if you use axios for http requests then it is recommended to use angular http module. https://angular.io/guide/http

MYHINDA commented 1 year ago

im not in angular. im on react

f5scott commented 1 year ago

Just use Yarn....

MYHINDA commented 1 year ago

Just use Yarn....

thanks, i tried again nd it works!