Giter VIP home page Giter VIP logo

Comments (18)

FrankBian avatar FrankBian commented on June 1, 2024 4

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.

jenkinv avatar jenkinv commented on June 1, 2024 1

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.

gengjiawen avatar gengjiawen commented on June 1, 2024 1

You can try yarn. yarn global add @bchatard/alfred-jetbrains

from alfred-jetbrains.

bchatard avatar bchatard commented on June 1, 2024

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.

yulutongfei avatar yulutongfei commented on June 1, 2024

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.

bchatard avatar bchatard commented on June 1, 2024

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.

praxder avatar praxder commented on June 1, 2024

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.

bchatard avatar bchatard commented on June 1, 2024

hi @AdamNSmith

I'm also using a custom location for preferences.

Can you try another workflow (see previous comment)?

from alfred-jetbrains.

praxder avatar praxder commented on June 1, 2024

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.

jenkinv avatar jenkinv commented on June 1, 2024

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.

chenminhua avatar chenminhua commented on June 1, 2024

same issue

from alfred-jetbrains.

chenminhua avatar chenminhua commented on June 1, 2024

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.

chenminhua avatar chenminhua commented on June 1, 2024

in this dependency file https://github.com/SamVerschueren/resolve-alfred-prefs/blob/master/index.js, the preference file path is hardcoded.

from alfred-jetbrains.

chenminhua avatar chenminhua commented on June 1, 2024

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.

kelvinchanjl avatar kelvinchanjl commented on June 1, 2024

同样的错误

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.

artem-krutov avatar artem-krutov commented on June 1, 2024

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.

clonylu avatar clonylu commented on June 1, 2024

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.

lvliangxiong avatar lvliangxiong commented on June 1, 2024

You can try yarn. yarn global add @bchatard/alfred-jetbrains

this works for me

from alfred-jetbrains.

Related Issues (20)

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.