Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

313
Visualizações
Update Angular2 PrimeNG version 1.1.4 to last version

I'm relatively new to angular2, so I was wondering how could I update my version(1.1.4) to last version!

I'm working on version 2.0.0-rc.5 of angular2.

Already tried

npm install primeng --save

but package.json still holds this value: ""primeng": "^1.1.4","

the package.json from the root directory of angular, and also of the primeng in node_modules directory

about 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

For future references: Had to uninstall with:

npm uninstall primeng --save

Run the code below to avoid unnecessary errors:

npm cache verify

And then install with the version you want

npm install primeng@x.x.x --save

thanks for you answer though

about 4 years ago · Santiago Trujillo Relatório

0

You only need run npm update --save into the folder that contains your package.json

Before:

"dependencies": {
   ....
    "primeng": "^1.1.4",
   ....
 },

After:

"dependencies": {
    ....
   "primeng": "^2.0.5",
    ....
 },

Note: this command update whole your dependencies...

about 4 years ago · Santiago Trujillo Relatório

0

Use "import {SidebarModule} from 'primeng/components/sidebar/sidebar';"

instead "import { SidebarModule } from 'primeng/primeng';"

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda