Skip to main content

Could not install from "@angular\cdk\scrolling" as it does not contain a package.json file


Problem :
npm install  @angular/cdk/scrolling chart.js quill
command is failing

Error Logs:

npm ERR! code ENOLOCAL
npm ERR! Could not install from "@angular\cdk\scrolling" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\naresh\AppData\Roaming\npm-cache\_logs\2019-09-26T23_27_21_226Z-debug.log

C:\Users\naresh\2019-projects\food-app2>npm install --save @angular/cdk/scrolling chart.js quill
npm ERR! code ENOLOCAL
npm ERR! Could not install from "@angular\cdk\scrolling" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\naresh\AppData\Roaming\npm-cache\_logs\2019-09-26T23_27_49_903Z-debug.log

C:\Users\naresh\2019-projects\food-app2>npm install --save @angular/cdk/scrolling
npm ERR! code ENOLOCAL
npm ERR! Could not install from "@angular\cdk\scrolling" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\naresh\AppData\Roaming\npm-cache\_logs\2019-09-26T23_44_06_044Z-debug.log



Solution :

Use command by splitting

npm install  @angular/cdk
npm install chart.js
npm install quill



Comments

Popular posts from this blog

Angular cli ng command is not working

Problem : angular cli command  ng is not working

C:\Windows\System32>ng
'ng' is not recognized as an internal or external command,
operable program or batch file.

Solution :

update .npmrc file at C:\Users\{USERNAME}
with the below line

prefix=${APPDATA}\npm

warning: LF will be replaced by CRLF in

Problem :

The file will have its original line endings in your working directory







Solution:

step1) open .gitconfig file

step2) paste the below code


[core]
autocrlf = false
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process


How to remove entity in jhipster and create fresh entities

Problem Statement : Not able to delete jhipster entity and wanted to entities freshly

Solution :

Step 1) Open command prompt and point to the jhipster project root

Step 2) Run  jhipster remove-entity

Step 3) Run jhipster

Step 4) Then import new jdl  using below command

jhipster import-jdl jhipster-jdl.jh

Step 5 ) Then Run  mvnw


Still Problem  : One of the entity may not load data and shows 500 error

Drop the tables in h2 database and let and do mvnw again.

To connect to local database Goto -> Administration -->Database --> Connect