microsoft / vscode-recipes

MIT License
5.86k stars 577 forks source link

ERR: code ENOENT - looking package.json under desktop #289

Closed hasancemcerit closed 2 years ago

hasancemcerit commented 3 years ago

I followed the exact launch and tasks.json files , even used "cwd" but no matter what I try it still gives me the following error:

The folder where it's supposed to execute npm command is correct.

> Executing task in folder <WORKSPACE-FOLDER>: npm run serve <

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\<USERNAME>\Desktop\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\<USERNAME>\Desktop\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\<USERNAME>\AppData\Roaming\npm-cache\_logs\2021-02-20T20_02_48_877Z-debug.log

Terminal will be reused by tasks, press any key to close it.
weinand commented 2 years ago

@hasancemcerit what recipe are you trying to use?

hasancemcerit commented 2 years ago

@weinand it was vue.js recipe. But just tried again with latest version of VS Code (1.61.1), and it's not giving errors anymore.

You can close this issue. Thanks for following up. 👍🏻

weinand commented 2 years ago

@hasancemcerit thanks for verifying!