Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syscalls does not yet support version 12.0.0 #935

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 13 additions & 3 deletions doc/syscalls.md
Expand Up @@ -13,14 +13,24 @@ The JavaScript environment of a web browser is completely isolated from your ope

### Node.js on Linux and macOS

GopherJS has support for system calls on Linux and macOS. Before running your code with Node.js, you need to install the system calls module. The module is compatible with Node.js version 10.0.0 (or newer). If you want to use an older version you can opt to not install the module, but then system calls are not available.
GopherJS has support for system calls on Linux and macOS. Before running your code with Node.js, you need to install the system calls module. The module is compatible with Node.js versions from 10.0.0 to 11.15.0 (Node.js version 12 is not yet supported). If you want to use an older version you can opt to not install the module, but then system calls are not available.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest changing this to:

version >= 10.0.0 and < 12.0.0

to remain valid if 11.15.1, or 11.16.0 are ever released.


Compile and install the module with:

```
cd $GOPATH/src/github.com/gopherjs/gopherjs/node-syscall/
# Install node-gyp globally
npm install --global node-gyp
node-gyp rebuild

# Change directory into gopherjs/node-syscall
cd $GOPATH/src/github.com/gopherjs/gopherjs/node-syscall/

# Rebuild using a specific node version
# Use can install a specific node version using https://github.com/tj/n
# To install Node.js version 11.15.0 use:
# n v11.15.0
node-gyp --target=v11.15.0 rebuild

# Create a Node Libraries folder and copy the artifact over
mkdir -p ~/.node_libraries/
cp build/Release/syscall.node ~/.node_libraries/syscall.node
```
Expand Down