Giter VIP home page Giter VIP logo

alfred-vscode-workspaces's People

Contributors

jmeischner avatar kbshl avatar phartenfeller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

alfred-vscode-workspaces's Issues

NODE_MODULE_VERSION missmatch after installing

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 ¯\_(ツ)_/¯

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.