alfred-chrome-workflow icon indicating copy to clipboard operation
alfred-chrome-workflow copied to clipboard

Can't download Workflow

Open ghost opened this issue 3 years ago • 8 comments

chumido@cMacBookP ~ % npm i -g alfred-chrome-workflow
npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm ERR! code 254
npm ERR! path /usr/local/lib/node_modules/alfred-chrome-workflow/node_modules/better-sqlite3
npm ERR! command failed
npm ERR! command sh -c prebuild-install || npm run build-release
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=17.0.1 runtime=node arch=x64 libc= platform=darwin)
npm ERR! npm ERR! code ENOENT
npm ERR! npm ERR! syscall open
npm ERR! npm ERR! path null/package.json
npm ERR! npm ERR! errno -2
npm ERR! npm ERR! enoent ENOENT: no such file or directory, open 'null/package.json'
npm ERR! npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! npm ERR! enoent 
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /Users/chumido/.npm/_logs/2021-11-08T06_53_37_992Z-debug.log

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/chumido/.npm/_logs/2021-11-08T06_53_38_364Z-debug.log

Hi @jopemachine. Can you help me? I have this error when download workflow. I'm on Monterey 12.0.1

ghost avatar Nov 08 '21 06:11 ghost

Hi @jopemachine. Can you help me? I have this error when download workflow.

Sure, I think it's a good idea to create a separate distribution file with alfredworkflow.

I saw many people had difficulty in installing their workflow through npm.

I think I better upload this workflow's alfredworkflow file if possible.

Could you let me know your node version?

jopemachine avatar Nov 08 '21 13:11 jopemachine

Hi @jopemachine. Can you help me? I have this error when download workflow.

Sure, I think it's a good idea to create a separate distribution file with alfredworkflow.

I saw many people had difficulty in installing their workflow through npm.

I think I better upload this workflow's alfredworkflow file if possible.

Could you let me know your node version?

Hi. Thanks for your reply. My node's on v17.0.1. NPM is 8.1.3

ghost avatar Nov 09 '21 00:11 ghost

@jopemachine Hi. Can you help me?

ghost avatar Nov 16 '21 08:11 ghost

@jopemachine Hi. Can you help me?

I'm sorry for disappearing for a while.

I'm quite busy with several personal issues these days, so I can't pay attention.

I think the below error message shows what is the problem.

npm ERR! command sh -c prebuild-install || npm run build-release
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=17.0.1 runtime=node arch=x64 libc= platform=darwin)

Could you try reinstalling the workflow through Node's lower version?

jopemachine avatar Nov 16 '21 14:11 jopemachine

@jopemachine Hi. Can you help me?

I'm sorry for disappearing for a while.

I'm quite busy with several personal issues these days, so I can't pay attention.

I think the below error message shows what is the problem.

npm ERR! command sh -c prebuild-install || npm run build-release
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=17.0.1 runtime=node arch=x64 libc= platform=darwin)

Could you try reinstalling the workflow through Node's lower version?

Hi. Thanks for your reply. I tried install node ver 16 and i can download the workflow and it work. Seem like the workflow does not work on node ver 17.

ghost avatar Nov 21 '21 05:11 ghost

Just passing by: this is a bug in npm 8.1.3 https://github.com/npm/cli/issues/4015

Prinzhorn avatar Nov 24 '21 19:11 Prinzhorn

So the real issue is that:

  • it's npm 8.1.3 that effectively cannot build binary modules in the context of a global install,
  • node 17 upgrade is a red herring - all it does is trigger the necessity to rebuild binary modules, and therefore
  • this issue would manifest on any node version upon an attempted global install of a never perviously installed package that builds binary modules

Is this more or less correct?

rulatir avatar Nov 25 '21 04:11 rulatir

I reimplemented this workflow in the below repository to avoid these kinds of installation issues.

https://github.com/jopemachine/alfred-chromium-workflow

jopemachine avatar May 29 '22 11:05 jopemachine