check out my latest app: Doodle Draw
and my latest blog post
Alfred 3 workflow to open Xcode projects, workspaces, and playgrounds
License: MIT License
check out my latest app: Doodle Draw
and my latest blog post
Hi, when I run the npm install --global alfred-xcode
command, it failed with the info below:
> [email protected] postinstall /usr/local/lib/node_modules/alfred-xcode
> alfy-init
{ [Error: Command failed: alfred-link
[Error: Alfred preferences not found at location /Users/guomin/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist]
]
code: 1,
killed: false,
stdout: '',
stderr: '[Error: Alfred preferences not found at location /Users/guomin/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist]\n',
failed: true,
signal: null,
cmd: 'alfred-link',
timedOut: false }
npm ERR! Darwin 16.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--global" "alfred-xcode"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `alfy-init`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'alfy-init'.
npm ERR! This is most likely a problem with the alfred-xcode package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! alfy-init
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs alfred-xcode
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls alfred-xcode
npm ERR! There is likely additional logging output above.
> [email protected] preuninstall /usr/local/lib/node_modules/alfred-xcode
> alfy-cleanup
{ [Error: Command failed: alfred-unlink
[Error: Alfred preferences not found at location /Users/guomin/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist]
]
code: 1,
killed: false,
stdout: '',
stderr: '[Error: Alfred preferences not found at location /Users/guomin/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist]\n',
failed: true,
signal: null,
cmd: 'alfred-unlink',
timedOut: false }
npm WARN continuing anyway [email protected] preuninstall: `alfy-cleanup`
npm WARN continuing anyway Exit status 1
npm ERR! Please include the following file with any support request:
npm ERR! /Users/guomin/Downloads/alfred-xcode-1.1.0.alfredworkflow/npm-debug.log
I'm just update xcode to version 8.3, is that matters?
thks.
It seems I would have to handle the search manually then, and run mdfind 'kMDItemContentType=com.apple.xcode.project||kMDItemContentType=com.apple.dt.document.workspace||kMDItemContentType=com.apple.dt.playground'
. Not sure it's worth doing that for just this, but maybe if I need more control in the future, like options for blacklist/whitelist and depth.
After installing this workflow on my new machine, I've noticed that it does not show correct icons for .xcworkspace
and .xcodeproj
files:
Xcode is set as the default application to open both file types.
Notes:
I've tried re-installing the workflow.
Everything else works as expected.
I'm currently running on macOS 12.1 (Apple Silicon).
Do you know what might be the issue here?
Also, huge kudos for creating this workflow. It's one of my most frequently used workflows ❤️
sudo npm install --global alfred-xcode
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/alfred-xcode
npm ERR! command failed
npm ERR! command sh -c alfy-init
npm ERR! Error: Command failed: alfred-link
npm ERR! You are not allowed to run this app with root permissions.
npm ERR! If running without sudo doesn't work, you can either fix your permission problems or change where npm stores global packages by putting ~/npm/bin in your PATH and running:
npm ERR! npm config set prefix ~/npm
npm ERR!
npm ERR! See: https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md
npm ERR!
npm ERR!
npm ERR! at makeError (/usr/local/lib/node_modules/alfred-xcode/node_modules/execa/index.js:174:9)
npm ERR! at /usr/local/lib/node_modules/alfred-xcode/node_modules/execa/index.js:278:16
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:93:5) {
npm ERR! code: 77,
npm ERR! stdout: '',
npm ERR! stderr: 'You are not allowed to run this app with root permissions.\n' +
npm ERR! "If running without sudo doesn't work, you can either fix your permission problems or change where npm stores global packages by putting ~/npm/bin in your PATH and running:\n" +
npm ERR! 'npm config set prefix ~/npm\n' +
npm ERR! '\n' +
npm ERR! 'See: https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md\n',
npm ERR! failed: true,
npm ERR! signal: null,
npm ERR! cmd: 'alfred-link',
npm ERR! timedOut: false,
npm ERR! killed: false
npm ERR! }
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jhmac/.npm/_logs/2020-11-23T11_12_02_145Z-debug.log
npm ERR! Failed at the [email protected] postinstall script 'alfy-init'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the alfred-xcode package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! alfy-init
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs alfred-xcode
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls alfred-xcode
npm ERR! There is likely additional logging output above.
Also, it would be nice if I can download .alfredworkflow
directly.
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.