menu

ZEIT

Our mission is to make cloud computing as easy and accessible as mobile computing. You can find our Next.js community here.

Channels
Team
Posts
Members
Info

2 Problems, 1 Question

I have a node app that works fantastically when running it with node . But when I attempt to use pkg to make executables for Linux, Mac OS and Windows I come across 2 problems 1. …

thumbsup
0
message-simple
0

node_modules not installed when running pkg from node.js code on Linux.

Anyone familiar with the situation that same code that packs an node.js app on Linux fails to install the node modules. While Windows works? Details can be shared.

thumbsup
0
message-simple
22

Warning Cannot resolve '__dirname + '/test''

Hello, I have a main.js with a require(__dirname + '/test') statement. I also have a package.json file which looks like this: …

thumbsup
0
message-simple
0

Can anyone help me ?

When i do pkg . in cmd, it says this but ive done npm i -g pkg

thumbsup
0
message-simple
1

Running a child process bash script

Hey guys sorry if this has been answered before but i can't find any answer. I'm trying to run a child process that runs a bash script that runs an executable. I've packaged the executable as an asset, and it has indeed been copied into the bundled pkg, however the child process…

thumbsup
0
message-simple
0

Documentation for dictionary patches

Related to my issue #736, but I can't find any documentation on how package patches / the dictionary directory as a whole functions in pkg. I'd love to make a PR for a package I depend on, but I'm not even sure where to start besides loosely referencing existing patches for…

thumbsup
0
message-simple
0

Issues with pkg using config.json file

Hello, I am using pkg to build executable package, but i have a config.json file which include tokens and values for variables which are read in main.js but after compiling, i cannot make any changes to config file. Is it a way to package the code but still keep the config file…

thumbsup
0
message-simple
0

Warning Cannot include addon %1 into executable

Hello everyone. After several hours of searching and confusing information about this issue, I couldn't figure it out. I'm creating a .exe of a nodejs app using pkg. When I do that I'm getting this issue: Warning Cannot include addon %1 into executable. The addon must be…

thumbsup
0
message-simple
0

Hello! Does pkg support node 12?

I'm getting this error Error! No available node version satisfies 'node12'

thumbsup
0
message-simple
4

What is the default PKG_CACHE_PATH where node binaries are placed?

I'd like to know this because I am building a Gitlab CUI job and I'd like to know where the downloaded node binaries are saved so that I can cache them. Tx in advance!

thumbsup
0
message-simple
0