mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-03 10:22:56 +00:00
Building with Node 16 produced this error: ``` npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path /io/nodejs/node_modules/apache-arrow-15/bin/arrow2csv.cjs npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, chmod '/io/nodejs/node_modules/apache-arrow-15/bin/arrow2csv.cjs' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent ``` [CI Failure](https://github.com/lancedb/lancedb/actions/runs/10117131772/job/27981475770). This looks like it is https://github.com/apache/arrow/issues/43341 Upgrading to Node 18 makes this goes away. Since Node 18 requires glibc >= 2_28, we had to upgrade the manylinux version we are using. This is fine since we already state a minimum Node version of 18. This also upgrades the openssl version we bundle, as well as consolidates the build files.
21 lines
384 B
Bash
Executable File
21 lines
384 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
install_node() {
|
|
echo "Installing node..."
|
|
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
|
|
|
|
source "$HOME"/.bashrc
|
|
|
|
nvm install --no-progress 18
|
|
}
|
|
|
|
install_rust() {
|
|
echo "Installing rust..."
|
|
curl https://sh.rustup.rs -sSf | bash -s -- -y
|
|
export PATH="$PATH:/root/.cargo/bin"
|
|
}
|
|
|
|
install_node
|
|
install_rust |