flyweight icon indicating copy to clipboard operation
flyweight copied to clipboard

Installation breaks

Open thiscaspar opened this issue 1 year ago • 2 comments

Hey, excited to try your lightweight ORM for sqlite, but sadly can't install it:

After running npx create-flyweight database in an empty folder (nvm version 22) I get this:

file:///home/me/.npm/_npx/013ae53d1681031b/node_modules/create-flyweight/index.js:92
config.scripts.types = `node ${join(root, 'makeTypes.js')}`;
                     ^

TypeError: Cannot set properties of undefined (setting 'types')
    at file:///home/caspar/.npm/_npx/013ae53d1681031b/node_modules/create-flyweight/index.js:92:22

Node.js v22.2.0

thiscaspar avatar May 23 '24 20:05 thiscaspar

You need to run npm init first to create the package.json. I have updated the installation so it doesn't matter though. You probably want to delete the directory and create it again. You can run npm uninstall create-flyweight first to make sure it installs the latest version.

andrewitsover avatar May 23 '24 20:05 andrewitsover

that worked, thanks!

thiscaspar avatar May 23 '24 22:05 thiscaspar