• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Could not find one of 'package.json' manifest files in the package

Q&A Forum › Category: ESP8266 › Could not find one of 'package.json' manifest files in the package
0 Vote Up Vote Down
Victor Das Neves asked 1 year ago

Hi wonder if you can help.
I have a new PC with WIN10 and loaded Visual Studio, with the following info
Version: 1.85.1 (user setup)
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:49:37.021Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045
However when I load any existing project or create a new project, I get the following error
“MissingPackageManifestError: Could not find one of ‘package.json’ manifest files in the package”
I have cleared my directory and reloaded VS afresh, reloaded Python 3.12.1, have reloaded Arduino 2.21, but still get the same error. Can you point me in the right direction please. Have loaded IDE, Arduino, JSON for VS, but still get the error.
Can you suggest what I can try next?
Could it be that the latest version of VS does not do the ESP8266?

2 Answers
0 Vote Up Vote Down
Victor Das Neves answered 1 year ago

I uninstalled the extension ESP32 Manager which I previously installed after loading VS
1. I then deleted the files in the C:/Users/USER/.platformio/.cache and packages directory – note you may have a different name for USER
3. Deleted my project in the PlatformIO directory (Actually moved the main.cpp to another directory)
2. Closed VS and restarted.

3. I loaded extension ESP-Engine
4. Created a new project again, and copied the text from my old file into the new open main.cpp
I compiled, which took a while as VS then rebuilt all the deleted files in .cache and packages directory and was successful. I then flashed my ESP8266 there after.

Hope this helps

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
Thank you for sharing your detailed solution.
This might be useful for other readers.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.