Comments (18)
same error
Franks-MacBook-Pro-2:~ frankbian$ sudo npm install -g @bchatard/alfred-jetbrains
> [email protected] postinstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/fast-xml-parser
> node tasks/postinstall.js || exit 0
Love fast-xml-parser? Check https://amitkumargupta.work for more projects and contribution.
> @bchatard/[email protected] postinstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains
> alfy-init
Error: Command failed with exit code 1 (EPERM): alfred-link
at makeError (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/alfy/node_modules/execa/lib/error.js:59:11)
at handlePromise (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/alfy/node_modules/execa/index.js:112:26)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/alfy/init.js:7:3 {
command: 'alfred-link',
exitCode: 1,
exitCodeName: 'EPERM',
stdout: '',
stderr: 'Error: Permission denied to read Alfred preferences at location /Users/frankbian/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist\n' +
' at module.exports (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/resolve-alfred-prefs/index.js:44:9)',
all: 'Error: Permission denied to read Alfred preferences at location /Users/frankbian/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist\n' +
' at module.exports (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/resolve-alfred-prefs/index.js:44:9)',
failed: true,
timedOut: false,
isCanceled: false,
killed: false,
signal: undefined
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @bchatard/[email protected] postinstall: `alfy-init`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @bchatard/[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/frankbian/.npm/_logs/2020-11-03T10_00_45_867Z-debug.log
from alfred-jetbrains.
in this dependency file https://github.com/SamVerschueren/resolve-alfred-prefs/blob/master/index.js, the preference file path is hardcoded.
thks for your reply,but this is not the cause.the index.js is dealing with alfred 4 and 3.my version is 4 and the file is just there,but npm cannot have permission to read it. i guess there maybe some problem deeply.as now,i have worked around by :1.download source (dir1) 2.sudo npm install -g (failed.ignore ) 3.create soft link from workflow dir to dir1
from alfred-jetbrains.
You can try yarn. yarn global add @bchatard/alfred-jetbrains
from alfred-jetbrains.
Hi @smeingast
sorry for the late reply. Can you try to create the missing file (just an empty one) and try again to re-install?
from alfred-jetbrains.
Hi @smeingast
sorry for the late reply. Can you try to create the missing file (just an empty one) and try again to re-install?
It doesn't work
from alfred-jetbrains.
hello,
I'm using Alfy to manage this workflow, can you try another one on this list: https://github.com/sindresorhus/alfy/#users
if the problem persist maybe open an issue on Alfy repo
from alfred-jetbrains.
I'm getting the same error message on install. It's because I have my Alfred preferences in a non-standard location so they can be backed up and synced across machines.
https://www.alfredapp.com/help/advanced/sync/
@bchatard Is it possible to install using a non-standard Alfred preferences path? Thanks! :)
from alfred-jetbrains.
hi @AdamNSmith
I'm also using a custom location for preferences.
Can you try another workflow (see previous comment)?
from alfred-jetbrains.
I just tried to install another workflow from Alfy and got the same error. I'll look into more over there and report back what I find.
from alfred-jetbrains.
Hi @smeingast
sorry for the late reply. Can you try to create the missing file (just an empty one) and try again to re-install?
i have the same error and have tried to touch the missing file , but doesn't work. Any other way to solve it ? thank you
from alfred-jetbrains.
same issue
from alfred-jetbrains.
I guess the file should be /Users/admin/Library/Preferences/com.runningwithcrayons.Alfred-Preferences.plist, so, it's should be file path issue.
I think we can work around this by create a softlink. But a pull request to cover this would be better.
from alfred-jetbrains.
in this dependency file https://github.com/SamVerschueren/resolve-alfred-prefs/blob/master/index.js, the preference file path is hardcoded.
from alfred-jetbrains.
it looks like an issue from alfred-link; SamVerschueren/alfred-link#22
Some other workflows created by alfy have the same problem.
from alfred-jetbrains.
同样的错误
Franks-MacBook-Pro-2:~ frankbian$ sudo npm install -g @bchatard/alfred-jetbrains > [email protected] postinstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/fast-xml-parser > node tasks/postinstall.js || exit 0 Love fast-xml-parser? Check https://amitkumargupta.work for more projects and contribution. > @bchatard/[email protected] postinstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains > alfy-init Error: Command failed with exit code 1 (EPERM): alfred-link at makeError (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/alfy/node_modules/execa/lib/error.js:59:11) at handlePromise (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/alfy/node_modules/execa/index.js:112:26) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/alfy/init.js:7:3 { command: 'alfred-link', exitCode: 1, exitCodeName: 'EPERM', stdout: '', stderr: 'Error: Permission denied to read Alfred preferences at location /Users/frankbian/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist\n' + ' at module.exports (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/resolve-alfred-prefs/index.js:44:9)', all: 'Error: Permission denied to read Alfred preferences at location /Users/frankbian/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist\n' + ' at module.exports (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/resolve-alfred-prefs/index.js:44:9)', failed: true, timedOut: false, isCanceled: false, killed: false, signal: undefined } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @bchatard/[email protected] postinstall: `alfy-init` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @bchatard/[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/frankbian/.npm/_logs/2020-11-03T10_00_45_867Z-debug.log
有处理方法吗
from alfred-jetbrains.
Changing the owner of npm's directories helped for me: https://stackoverflow.com/questions/47252451/permission-denied-when-installing-npm-modules-in-osx
from alfred-jetbrains.
Try not do sudo npm install -g
, follow this guideline to configure npm to use a user directory. Then run npm install -g
.
This solved the problem for me, although I don't fully understand the permission issue caused by running sudo
.
from alfred-jetbrains.
You can try yarn.
yarn global add @bchatard/alfred-jetbrains
this works for me
from alfred-jetbrains.
Related Issues (20)
- Unable to find bin for ${product.key}. Search for bin named
- How can I set the right script path to this workflow HOT 1
- pstorm looks to be deprecated in new EAP HOT 27
- Installation not working on Alfred 5 HOT 7
- [Alfred 5]Can't find application path for IntelliJIdea HOT 11
- Can't find application path for IntelliJ IDEA (Ultimate)2023.1.1 HOT 9
- Not finding new IntelliJ projects HOT 22
- A small idea
- Unable to 'Open Pycharm Project' when using 'JetBrains Toolbox' HOT 16
- JetBrains Rider not showing projects HOT 5
- idea 2023,tool box,cannot find the specified directory in the system PATH
- Toolbox v2 HOT 7
- Can't find application path for IntellijIdea. after update toolbox 2.0.2 HOT 4
- The idea command line does not recognize environmental variables. HOT 5
- Unable to save data for workflow HOT 4
- search project bug HOT 3
- Can not change Intellij Idea Edition to Ulimate. HOT 2
- Does not find PhpStorm application HOT 2
- Question about the behavior in toolbox 2: Filter proejct by partial name HOT 4
- support hot key HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfred-jetbrains.