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



0 comments:

Post a Comment