Unmet Peer Dependency during npm install

UI Components for Angular
Post Reply
c-myers1
Posts: 18
Joined: 23 May 2016, 23:13

23 May 2016, 23:19

I get the following error trying to npm install

C:\code\primeng>npm install primeng --save
primeng-quickstart@1.0.0-SNAPSHOT C:\code\primeng
+-- primeng@1.0.0-beta.6
`-- UNMET PEER DEPENDENCY primeui@4.1.10

npm WARN primeng@1.0.0-beta.6 requires a peer of primeui@^4.1.11 but none was installed.
npm WARN primeng-quickstart@1.0.0-SNAPSHOT No repository field.

How is this resolved?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 May 2016, 09:06

You also need PrimeUI e.g;

Code: Select all

npm install primeui --save

c-myers1
Posts: 18
Joined: 23 May 2016, 23:13

24 May 2016, 14:44

It gives similar error:

C:\code\primeng>npm install primeui --save
primeng-quickstart@1.0.0-SNAPSHOT C:\code\primeng
`-- primeui@4.1.11

npm WARN primeng-quickstart@1.0.0-SNAPSHOT No repository field.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 May 2016, 15:32

That is a warning, I don't think it is similar. It complains about repository field which is optional. Are you trying to start with our quickstart sample? If so please check the github code again, I've just updated versions;

Code: Select all

    "primeng": "1.0.0-beta.6",
    "primeui": "4.1.11"

c-myers1
Posts: 18
Joined: 23 May 2016, 23:13

24 May 2016, 16:59

Yes I was starting from scratch with the instructions at the top of http://www.primefaces.org/primeng/#/setup.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 May 2016, 18:44

Did my answer help, those are the correct versions which are latest.

c-myers1
Posts: 18
Joined: 23 May 2016, 23:13

24 May 2016, 22:41

Yes thank you. But what are the correct instructions for the general npm commands?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 May 2016, 23:06

What do you mean by general npm instructions? Our quickstart is based on angular2 quickstart;

https://angular.io/docs/js/latest/quickstart.html

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests