Giter VIP home page Giter VIP logo

Comments (4)

TheJaredWilcurt avatar TheJaredWilcurt commented on June 9, 2024

primordials is a feature that was built in to very old versions of Node.js. You should either use a tool like Volta to manage your Node version, so you can switch to an old version of Node.js. Or you should update to a newer version of nw-builder. You are on version 1.0.13 (9 years old), the latest is 4.7.1 (2 weeks old).

npm uninstall node-webkit-builder

npm install --save-dev nw-builder@latest

Then look at the documentation for how to use the latest version.

from nw-builder.

nosleepfortonight avatar nosleepfortonight commented on June 9, 2024

primordials is a feature that was built in to very old versions of Node.js. You should either use a tool like Volta to manage your Node version, so you can switch to an old version of Node.js. Or you should update to a newer version of nw-builder. You are on version 1.0.13 (9 years old), the latest is 4.7.1 (2 weeks old).

* https://github.com/nwutils/nw-builder/releases

npm uninstall node-webkit-builder

npm install --save-dev nw-builder@latest

Then look at the documentation for how to use the latest version.

i did what you said and i got this

Error: package.json not found in srcDir file glob patterns.
    at Object.getNodeManifest (file:///usr/local/lib/node_modules/nw-builder/src/util.js:163:11)
    at async nwbuild (file:///usr/local/lib/node_modules/nw-builder/src/index.js:51:16)
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: package.json not found in srcDir file glob patterns.
    at Object.getNodeManifest (file:///usr/local/lib/node_modules/nw-builder/src/util.js:163:11)
    at async nwbuild (file:///usr/local/lib/node_modules/nw-builder/src/index.js:51:16)

Node.js v20.12.2

from nw-builder.

TheJaredWilcurt avatar TheJaredWilcurt commented on June 9, 2024

You'll have to post a link to your project, the error is related to your project files

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on June 9, 2024

Without knowing the specifics you have two options:

  1. Disable globbing if your srcDir is just one dir and your package.json is under srcDir for eg (./nwapp/package.json)
nwbuild({
  glob: false
});
  1. Pass the file path to your NW.js manifest before other files:
nwbuild({
  srcDir: './package.json ./nwapp/**'
})

from nw-builder.

Related Issues (20)

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.

  • 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.

  • 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.

  • D3 photo D3

    Data-Driven Documents codes.