Error could not find one of package json manifest files in the package

Dear Community, I am facing an error I am not able to solve for a few days already. Can somone shed some light please? I am trying to upload a program to my WeMos D1 Mini via Platformio. my pfatformio.ini file: [env:d1_mini] platform = espressif8266@2.6.3 board = d1_mini framework = arduino board_build.filesystem = littlefs board_build.ldscript = eagle.flash.1m256.ld upload_port = COM4 upload_speed = 115200 platform_packages = framework-arduinoespressif8266 @ https://github.com/esp8266/Ar...

PlatformIO Community

Loading

i have a problem with uploading a sketch to an Controllino Maxi Automation with the PlatformIO IDE. I created an example project without any big code:
src- main.cpp:

#include <Arduino.h>

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

When i try to upload it to the board there occures this error, directly after starting the upload without even compiling…:

Error: Could not find one of ‘package.json’ manifest files in the package

My platform.ini:

[env:controllino_maxi_automation]
platform = atmelavr
board = controllino_maxi_automation
framework = arduino

Maybe the wrong platform is selected, because in ArduinoIDE the Platform is named CONTROLLINO_Boards-avr? But i can not find this one with PlatformIO and with the atmelavr platform i can select the right controllino board…

The upload with the ArduinoIDE works fine, also with adding the controllino.json:

https://raw.githubusercontent.com/CONTROLLINO-PLC/CONTROLLINO_Library/master/Boards/package_ControllinoHardware_index.json

Only compiling works also, so why is the upload not working here?

I hope someone can help me :)

kilitili62

Error: Could not find one of ‘package.json’ manifest files in the package

bobbrow

This sounds like an issue with the installation. Have you tried uninstalling and reinstalling the extension?

kilitili62

Hello, I’m just trying to compile a Marlin firmware to obtain a.hex file but nothing works. I uninstalled several times but nothing worked.

bobbrow

Sorry, I don’t really know how Mariln works, but it looks like they might have their own extension that can produce a build for you. Perhaps you can give that a try if our extension is unable to build it for you.

bobbrow

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

package.json not found Nodejs

In this blog post, learn how to fix the “package.json not found” error in the npm command.
You can also check other posts on npm command deprecate option is deprecated and Fix for digital envelope routines::unsupported

Fix package.json not found an error

package.json is a JSON configuration file of a nodejs project which contains metadata of an application + dependencies etc.

In NPM based applications such as nodejs, Angular, VueJS, and ReactJS applications, the package.json file location is the application root.

When you are creating a new project manually or when installing project dependencies we used to get the following errors.

  • package.json not found
  • ENOENT: no such file or directory package.json
  • npm can’t find a package.json file
  • no such file or directory package.json

Usually, this error comes when npm commands are running and not found package.json in the application root.

This error gives after running the npm command.

  • npm installs dependencies locally or globally
  • npm run start — running the project

There are no ways we can create a package.json file.

  • manually creation using a text editor
  • npm init command
  • npm init -y command

npm init command for generating package.json

npm, init command creates package.json that is filled with values that are entered by the user. It asks promptly to enter details as below.

This is the starting phase for any npm-based application creation.

 B:Workspaceblognpmcommand>npm init  
This utility will walk you through creating a package.json file.  
It only covers the most common items and tries to guess sensible defaults.  
  
See `npm help json` for definitive documentation on these fields  
and exactly what they do.  
  
Use `npm install ` afterward to install a package and  
save it as a dependency in the package.json file.  
  
Press ^C at any time to quit.  
package name: (npmcommand) mypackage  
version: (1.0.0)  
description:  
entry point: (index.js)  
test command:  
git repository:  
keywords:  
author:  
license: (ISC)  
About to write to B:Workspaceblognpmcommandpackage.json:  
  
{  
  "name": "mypackage",  
  "version": "1.0.0",  
  "description": "",  
  "main": "index.js",  
  "scripts": {  
    "test": "echo "Error: no test specified" && exit 1"  
  },  
  "author": "",  
  "license": "ISC"  
}  
  
  
Is this ok? (yes) yes

It creates the below package.json.

 {  
  "name": "mypackage",  
  "version": "1.0.0",  
  "description": "",  
  "main": "index.js",  
  "scripts": {  
    "test": "echo "Error: no test specified" && exit 1"  
  },  
  "author": "",  
  "license": "ISC"  
}

npm init -y with default package.json

This will not ask for any details and just creates a package.json file with default values. You can later change or modify using any text editor

The above command creates a default package json file Here is a package.json example.

{  
  "name": "npmcommand",  
  "version": "1.0.0",  
  "description": "",  
  "main": "index.js",  
  "scripts": {  
    "test": "echo "Error: no test specified" && exit 1"  
  },  
  "keywords": [],  
  "author": "",  
  "license": "ISC"  
}  

Once package.json is installed, You can install all the dependencies locally npm install –save-dev or npm install -g

Понравилась статья? Поделить с друзьями:
  • Error could not find module hdf5 dll
  • Error could not find java se runtime environment что делать
  • Error could not find java dll что делать
  • Error could not find java dll error could not find java se runtime environment
  • Error could not find expected browser chrome locally