jukben / alfred-emoji Goto Github PK
View Code? Open in Web Editor NEW✌Alfred 3 workflow to find relevant emoji based on text
License: MIT License
✌Alfred 3 workflow to find relevant emoji based on text
License: MIT License
Thanks for your quick response to the previous issue! So I've tried a few times/ways to install (reinstalling, removing, ensuring npm was updated), but they all gave me this error:
npm ERR! path /usr/local/lib/node_modules/alfred-emoji/node_modules/match-sorter/node_modules/diacritic
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/alfred-emoji/node_modules/match-sorter/node_modules/diacritic' -> '/usr/local/lib/node_modules/alfred-emoji/node_modules/match-sorter/node_modules/.diacritic.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
I also ensured that my node.js was up-to-date by installing nvm. When doing so I got a tree of packages that showed what might be useful info for alfred-emoji:
It seems that your awesome workflow is causing Alfred to run multiple times. Which results in the text expender to past 3 times the output I need.
It is exactly the same at described here: https://www.alfredforum.com/topic/11957-alfred-pastes-the-same-snippet-multiple-times/
open Alfred type 'e Magnet', should find the magnet emoji
☝🏻
This will fix this issue: SamVerschueren/alfred-link#20
It occurs when a user tries installing your workflow from npm as their very first workflow after installing Alfred 3. It is because a /workflows
does not exist until you create a workflow in Alfred.
Thank you for sharing. The AI search is very convenient. The all caps description in the title is a bit irritating though. Could you move it to the subtitle and use lowercase?
Also, fallback to it (https://github.com/jukben/emoji-search) when no connection is available.
Stacktrace:
❯ npm install -g alfred-emoji
> [email protected] postinstall /Users/jordyvandomselaar/.nvm/versions/node/v12.4.0/lib/node_modules/alfred-emoji/node_modules/core-js
> node scripts/postinstall || echo "ignore"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> [email protected] postinstall /Users/jordyvandomselaar/.nvm/versions/node/v12.4.0/lib/node_modules/alfred-emoji
> alfy-init
Error: Command failed: alfred-link
Error: `Alfred.alfredpreferences` package does not exist
at /Users/jordyvandomselaar/.nvm/versions/node/v12.4.0/lib/node_modules/alfred-emoji/node_modules/alfred-link/index.js:27:12
at makeError (/Users/jordyvandomselaar/.nvm/versions/node/v12.4.0/lib/node_modules/alfred-emoji/node_modules/execa/index.js:174:9)
at /Users/jordyvandomselaar/.nvm/versions/node/v12.4.0/lib/node_modules/alfred-emoji/node_modules/execa/index.js:278:16
at processTicksAndRejections (internal/process/task_queues.js:89:5) {
code: 1,
stdout: '',
stderr: 'Error: `Alfred.alfredpreferences` package does not exist\n ' +
'at ' +
'/Users/jordyvandomselaar/.nvm/versions/node/v12.4.0/lib/node_modules/alfred-emoji/node_modules/alfred-link/index.js:27:12\n',
failed: true,
signal: null,
cmd: 'alfred-link',
timedOut: false,
killed: false
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `alfy-init`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jordyvandomselaar/.npm/_logs/2019-07-31T12_01_59_284Z-debug.log
TypeError: Object.entries is not a function
at Object.<anonymous> (/usr/local/lib/node_modules/alfred-emoji/node_modules/@jukben/emoji-search/lib/index.js:20:22)
at Object.<anonymous> (/usr/local/lib/node_modules/alfred-emoji/index.js:5:16)
Emoji 0.0.3
Alfred 3.5.1
darwin x64 17.2.0
Any way to resolve this with npm?
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.