function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

i am getting a error when am i creating a project for(Web Component) with VSC

Hi all

i am not able to creating a project with VSC because when am i going to creating a project then find flowing errors

    throw err;

Error: Cannot find module '../package.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

VinayVinay (Salesforce Developers) 
Hi Akhan,

Try to delete the client folder located at C:\Users\Demo\AppData\Local\sfdx\client.  Client folder might contains some node js files.

Review below links which gives you more information on similar error.

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Vinay Kumar