-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unable to install (error Couldn't find package "[email protected]") #14
Comments
Any chance someone could help me figure this out? 😇 |
Got it working with RocksDB 🥳
[package]
name = "surrealdb_node"
version = "0.4.0"
edition = "2021"
[lib]
crate-type = ["cdylib"]
[dependencies]
dmp = "0.2.0"
napi = { version = "2", features = ["async", "serde-json"] }
napi-derive = "2"
serde = "1.0.188"
serde_json = "1.0.105"
surrealdb = { version = "1.0.0", features = ["kv-mem", "kv-rocksdb"] }
[build-dependencies]
napi-build = "2.0.1"
[features]
rocksdb = ["surrealdb/kv-rocksdb"]
[profile.release]
lto = true
# [target.x86_64-pc-windows-msvc.dependencies]
# surrealdb = { version = "1.0.0", features = ["kv-mem", "kv-rocksdb"] }
# [target.x86_64-unknown-linux-gnu.dependencies]
# surrealdb = { version = "1.0.0", features = ["kv-mem", "kv-rocksdb"] }
# [target.aarch64-linux-android.dependencies]
# surrealdb = { version = "1.0.0", features = ["kv-mem", "kv-rocksdb"] }
# [target.armv7-linux-androideabi.dependencies]
# surrealdb = { version = "1.0.0", features = ["kv-mem", "kv-rocksdb"] }
[target.aarch64-apple-darwin.dependencies]
surrealdb = { version = "1.0.0", features = ["kv-mem", "kv-rocksdb"] }
|
Now I'm wondering why those lines where disabled, anything I should watch out for? |
Has development of this library been discontinued? |
Thanks for your help. I follow your step to install surrealdb.node on my Macbook Air with M2 chip. Everything is OK. However, when I run the official example, as below, I encounter this import {Surreal} from 'surrealdb.node';
const {Surreal} = require('surrealdb.node');
const db = new Surreal();
// use in-memory database
await db.connect('memory');
// Select a specific namespace / database
await db.use({ ns: "test", db: "test" });
// Create a new person with a random id
let created = await db.create("person", {
title: "Founder & CEO",
name: {
first: "Tobie",
last: "Morgan Hitchcock",
},
marketing: true,
identifier: Math.random().toString(36).substr(2, 10),
}); |
I hope and don't think it has been discontinued just too many other priorities are the moment I guess 🥲 Though I'm also desperately waiting for it to continue & improve 🥹 Sorry can't help you as I never continued my experiments, would prefer official support 😇 |
Okay so the installation problem, at least in my case, was due to yarn v1, as I switched our project to pnpm couple of days ago I just tried again and installation worked though I think rocksdb might not work, also deployed in Docker didn't seem to work on first try, so I'm still desperately waiting for nodejs embedded surrealdb to advance 😇 |
Looks like this issue is being ignored... I "fixed" this by publishing the missing |
Hey @alexgorbatchev and @CanRau, so sorry for the late response here! I've mainly been very busy which is unfortunately holding me back from fixing these issues. I will be focusing on some welcome improvements to the JS ecosystem the coming time again and will also make sure to tackle this issue! |
Hey @kearfy thanks for the heads up really appreciated 🙌🏼 |
The issue I'm having seems to be similar.
(Linux) |
yarn add surrealdb.node
results in the following errorI'm on macOS Big Sur (11.7.10) and unfortunately can't upgrade due to 3rd party ssd 🥲
Anything I can do? I wan't to embed ideally via file (I guess RocksDB) and potentially memory
Update: just in case this happens using yarn
1.22.19
The text was updated successfully, but these errors were encountered: