Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error Installing npm packages #7948


User avatar
0
troyfernando created

I'm having problem installing npm packages with error

Unexpected token { in JSON at position 373 while parsing near '...==" npm ERR! } npm ERR! } npm ERR! } npm ERR! { npm ERR! "name": "abp-ze...'

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\RJ\AppData\Roaming\npm-cache_logs\2019-11-04T06_17_06_033Z-debug.log


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Do you use yarn to install the package?

  • User Avatar
    0
    troyfernando created

    yes i did.

  • User Avatar
    0
    maliming created
    Support Team

    Try yarn add jqwidgets-ng

  • User Avatar
    0
    troyfernando created

    thanks it worked . did a second yarn add @ngtools/webpack which is related to the first package . it says "main.ts is missing from the TypeScript compilation..."

  • User Avatar
    0
    troyfernando created

    just found the solution .. just added these in tsconfig.json "include": [ "../src/**/*" ],