+ Start a Discussion
akkkakkk 

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

internal/modules/cjs/loader.js:584
    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)


Thanks
akhan
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.

https://salesforce.stackexchange.com/questions/265439/unable-to-run-sfdx-command-after-installing-salesforce-cli
https://stackoverflow.com/questions/53545800/internal-modules-cjs-loader-js582-throw-err
https://salesforce.stackexchange.com/questions/222566/sfdx-6-21-0-9db990b3c9-and-current-update-error-sfdx-no-longer-works

Hope above information was helpful.

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

Thanks,
Vinay Kumar