fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

NPM install fails - wrong dependency version

Open havri opened this issue 6 years ago • 13 comments

I am unable to install office-ui-fabric-react into blank project:

npm install --save office-ui-fabric-react

results into

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @uifabric/utilities@^7.12.1
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of '@uifabric/styling'
npm ERR! notarget

havri avatar Feb 17 '20 13:02 havri

While utilities is still 7.12.0: https://www.npmjs.com/package/@uifabric/utilities

havri avatar Feb 17 '20 13:02 havri

We get this too since ~1hour

mirkori avatar Feb 17 '20 13:02 mirkori

I'm having the same issue.

kevin7 avatar Feb 17 '20 13:02 kevin7

We could fix it by holding back a couple packages:

"@uifabric/react-hooks": "7.0.9",
 "@uifabric/styling": "7.10.8",

Looks like one of the packages hasn't been published.

jleck avatar Feb 17 '20 14:02 jleck

Any solution yet, please?

jafman avatar Feb 17 '20 14:02 jafman

The workaround suggested by jleck works for me.

Gregghis avatar Feb 17 '20 14:02 Gregghis

The workaround suggested by jleck works for me.

So how did you apply the fix? Thanks

jafman avatar Feb 17 '20 14:02 jafman

I updated the package.json file adding the dependecies "@uifabric/styling": "7.10.8", "@uifabric/react-hooks": "7.0.9", in the dependencies section. Then I run npm i

Gregghis avatar Feb 17 '20 14:02 Gregghis

I updated the package.json file adding the dependecies "@uifabric/styling": "7.10.8", "@uifabric/react-hooks": "7.0.9", in the dependencies section. Then I run npm i

Thanks Man. Worked like charm.

jafman avatar Feb 17 '20 14:02 jafman

We could fix it by holding back a couple packages:

"@uifabric/react-hooks": "7.0.9",
 "@uifabric/styling": "7.10.8",

Looks like one of the packages hasn't been published.

Thanks

jafman avatar Feb 17 '20 14:02 jafman

Same problem for us too.

cemkestek avatar Feb 17 '20 16:02 cemkestek

@uifabric/utilities 7.12.1 available, which fixed the bug -> closing.

havri avatar Feb 18 '20 10:02 havri

this was bumped by PR #11974. this might be related to the NPM publishing outage last week

xugao avatar Feb 18 '20 19:02 xugao