Comments (4)
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.
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.
You'll have to post a link to your project, the error is related to your project files
from nw-builder.
Without knowing the specifics you have two options:
- Disable globbing if your srcDir is just one dir and your package.json is under srcDir for eg (./nwapp/package.json)
nwbuild({
glob: false
});
- Pass the file path to your NW.js manifest before other files:
nwbuild({
srcDir: './package.json ./nwapp/**'
})
from nw-builder.
Related Issues (20)
- unzipper failed. Emitted 'error' event on DuplexWrapper instance at #289 HOT 8
- nw-builder 4.5.3 requires WINE on Windows 11 HOT 3
- Add documentation on how to use package HOT 1
- Migrate back to `yauzl-promise` for unzipping MacOS binaries HOT 1
- Use Google's Release Please bot to automate releases HOT 1
- nw-builder always redownloads nw.js binaries HOT 2
- PR test coverage requirement HOT 5
- v0.87.0 MacOS builds don't launch with nw-builder v4.7.4 HOT 5
- Download manifest seems to not be cached, which leads to failures when builds are run in parallel HOT 2
- libffmpeg not being installed into correct folder HOT 5
- on some macOS, symbolic links are copied as files and link is lost
- Symlinks are copied as files on decompress HOT 9
- `argv` is not properly handled
- linux platform builds with ffmpeg enabled fail with zlib error '[ ERROR ] incorrect header check' HOT 2
- Enabling and disabling `options.ffmpeg` still uses community FFmpeg on successive build HOT 4
- Rename MacOS Helpers HOT 3
- Node Native Addon (gyp, nan, cmake, ffi)
- Canary builds HOT 1
- nw-builder download stuck HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nw-builder.