Running npm install fails

Forum rules
Please note that response time for technical support is within 3-5 business days.
User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

22 Nov 2021, 10:31

Trying to use the primeblock download I just bought and build the application, results in the following error:

npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: primeblocks-vue@2.0.0
npm ERR! Found: primeicons@4.1.0
npm ERR! node_modules/primeicons
npm ERR! primeicons@"^4.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer primeicons@"^5.0.0" from primevue@3.9.1
npm ERR! node_modules/primevue
npm ERR! primevue@"^3.8.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/bjorntj/.npm/eresolve-report.txt for a full report.

I was kind of expecting software I pay for, just should work.....
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

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

22 Nov 2021, 10:36

Hi,

I think NPM is warning to update to PrimeIcons 5.

What are your PrimeVue and PrimeIcons versions? We've released 3.9.1 last week which requires PrimeIcons 5.

Regards,

Cagatay Civici
PrimeTek

User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

22 Nov 2021, 10:39

I do not have any versions... All I have done, is to unpack the zip file I downloaded (primeblocks-vue-2.0.0.zip), unzipped it and trying to run "npm install" where I unzipped the file, like it says in the README.md file and kind of expecting this to just work out of the box!
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

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

22 Nov 2021, 10:47

I see, PrimeVue and PrimeIcons are updated after PrimeBlocks v2 so npm is warning for peer dependencies. Let me check and get back to you asap.

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

22 Nov 2021, 10:55

Please try;

1) Remove node_modules.

2) Replace your package.json with the following; (just updates PrimeVue and Icons)

Code: Select all

{
  "name": "primeblocks-vue",
  "version": "2.0.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "core-js": "3.6.5",
    "primeflex": "3.1.0",
    "primeicons": "5.0.0",
    "primevue": "3.9.1",
    "prismjs": "1.15.0",
    "vue": "3.1.5",
    "vue-router": "^4.0.0-0"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/compiler-sfc": "3.1.5",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^7.0.0",
    "node-sass": "^4.12.0",
    "sass-loader": "^8.0.2"
  }
}
3) npm install
4) npm run serve
5) Visit http://localhost:8080/

User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

22 Nov 2021, 11:08

Already tried that but that just gives me other errors.... When I buy thing, I am kind of expecting this to just work, without me having to work to get it to work.......

https://www.codepile.net/pile/aEb3m2q4
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

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

22 Nov 2021, 11:27

What are the other errors? The setup above worked fine for me.

User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

22 Nov 2021, 11:34

If you look at the link I provided?
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

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

22 Nov 2021, 12:39

1) What is your node version installed in your system?

2) Can you please replace;

Code: Select all

"node-sass": "^4.12.0",
with

Code: Select all

"sass": "^1.26.5",
followed by;

- Remove node_modules and then;

Code: Select all

npm install

User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

22 Nov 2021, 12:43

I have node version v16.11.1 installed.

But then it worked..
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

Post Reply

Return to “PrimeBlocks for PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest