hetrodoo / node-hide-console-window Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
If the default terminal application is not set to windows console host but to windows terminal, the node application will start inside windows terminal which results in a secondary empty window which can be toggled hidden, but it does not have any effect on the real console window which is hosted inside windows terminal.
I download a zip from the internet and unzip it, is there a way to hide the console during this process?
2023-11-06T12_14_31_203Z-debug-0.log
like log files shows up
When trying to install with bun I get the following error
bun add v1.0.32-canary.21 (5fec71bd)
installed [email protected]
1 package installed [360.00ms]
Blocked 1 postinstall. Run `bun pm untrusted` for details.
1 | const {showConsole, hideConsole} = require("./build/Release/node-hide-console-window");
^
error: Could not resolve: "./build/Release/node-hide-console-window"
at C:\Users\this1\Desktop\Software\Software\Bat2Exe\src\node_modules\node-hide-console-window\index.js:1:44
Hello everyone!
I'm having issues to use node-hide-console-window with nexe. The program run correctly by npm start, but I'm getting the following issue when running the .exe after build:
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: Não foi possível encontrar o módulo especificado. (Unable to find especified Module)
\\?\C:\Arquivos\Workspaces\ManagedByVw\Builded\node_modules\node-hide-console-window\build\Release\node-hide-console-window.node
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (C:\Arquivos\Workspaces\ManagedByVw\Builded\node_modules\node-hide-console-window\index.js:1:36)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
I've already tryed:
npm i node-hide-console-window
npm rebuild node-hide-console-window
Delete node_modules and package-lock.json
npm cache clean --force
npm update
npm rebuild node-hide-console-window --build-from-source
installed another node version with nvm and switched
reinstalled nexe
I'm using node v14.15.3, npm 6.14.9, Windows 10 x64 22H2 on A10-4800M
My package.json
{
"name": "managedbybe",
"version": "1.0.0",
"description": "Backend do ManagedBy",
"main": "./src/index.js",
"scripts": {
"test": "nodemon node ./src/index.js",
"start": "node ./src/index.js"
},
"keywords": [
"javascript",
"php",
"nodejs"
],
"author": "Lucas Rodrigues do Nascimento",
"license": "ISC",
"dependencies": {
"express": "^4.17.3",
"node-hide-console-window": "^2.1.1",
"sequelize": "^6.17.0",
"sequelize-cli": "^6.5.2",
"systray": "^1.0.5",
"tedious": "^15.1.2"
},
"devDependencies": {
"nexe": "^4.0.0-rc.2",
"nodemon": "^2.0.15"
}
}
I'm requiring as this in ./src/index.js:
const {hideConsole,showConsole} = require("node-hide-console-window");
I've tried to importe as ConsoleWindow also, still the same.
I'm not sure if it's an node-hide-console-window problem, or node.js or nexe. Please let me know if i'm in the wrong place.
Hi, thank you very much for this package.
Could you provide an example of how to integrate with pkg?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.