phartenfeller / alfred-vscode-workspaces Goto Github PK
View Code? Open in Web Editor NEWThis project forked from kbshl/alfred-vscode
Alfred 4/5 workflow for local and remote Visual Studio Code workspaces
License: MIT License
This project forked from kbshl/alfred-vscode
Alfred 4/5 workflow for local and remote Visual Studio Code workspaces
License: MIT License
So, I got this error when running this workflow on a new computer:
{
"items": [
{
"title": "[error] Could not get data: Error: The module '/Users/sofiaringstrom/.nvm/versions/node/v18.19.0/lib/node_modules/@phartenfeller/alfred-vscode-workspaces/node_modules/better-sqlite3/build/Release/better_sqlite3.node'\nwas compiled against a different Node.js version using\nNODE_MODULE_VERSION 108. This version of Node.js requires\nNODE_MODULE_VERSION 115. Please try re-compiling or re-installing\nthe module (for instance, using `npm rebuild` or `npm install`).\n",
"subtitle": "Press ⌘L to see the full error and ⌘C to copy it.",
"valid": false,
"text": {
"copy": "```\n[error] Could not get data: Error: The module '/Users/sofiaringstrom/.nvm/versions/node/v18.19.0/lib/node_modules/@phartenfeller/alfred-vscode-workspaces/node_modules/better-sqlite3/build/Release/better_sqlite3.node'\nwas compiled against a different Node.js version using\nNODE_MODULE_VERSION 108. This version of Node.js requires\nNODE_MODULE_VERSION 115. Please try re-compiling or re-installing\nthe module (for instance, using `npm rebuild` or `npm install`).\n```\n\n-\nVSCode Workspaces 1.1.1\nAlfred 5.1.4\ndarwin 23.1.0",
"largetype": "[error] Could not get data: Error: The module '/Users/sofiaringstrom/.nvm/versions/node/v18.19.0/lib/node_modules/@phartenfeller/alfred-vscode-workspaces/node_modules/better-sqlite3/build/Release/better_sqlite3.node'\nwas compiled against a different Node.js version using\nNODE_MODULE_VERSION 108. This version of Node.js requires\nNODE_MODULE_VERSION 115. Please try re-compiling or re-installing\nthe module (for instance, using `npm rebuild` or `npm install`)."
},
"icon": {
"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
}
}
]
}
Turns out, you need node v20.8.1
to run better_sqlite3
. Which means, this repo needs to be installed with node v20.8.1
, not at > v16
. It's weird since better-sqlite3
also states that you need > v14.21.1
... All of this makes no sense to me.
I have this workflow installed on my old computer and was able to update to 1.1.1
without changing node version. Maybe it was due to the fact that I had 1.1.0
already installed, I don't know.
But for anyone doing a fresh install and running into this error, looks like you might need to install the repo with node v20.8.1
to be able to use the workflow ¯\_(ツ)_/¯
I'm really liking this. works better than others i've used. I was wondering if someone could help me figure out how to get this to also query workspaces?
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.