0

Currently I am invoking the command...

npx @google-cloud/functions-framework

But everytime I call this, it downloads the whole library again.

Is there a way I can call this command without having the lib downloaded eveerytime?

Scorb
  • 1,654
  • 13
  • 70
  • 144
  • 2
    The whole point of npx is downloading and executing. Install the command globally with npm install -g. – Private_GER Jul 06 '22 at 20:59
  • Can I do it without installing globally? Can i just install to a specific directory? – Scorb Jul 06 '22 at 21:03
  • Sure, but then it'll work only in that specific directory. – Bergi Jul 06 '22 at 21:06
  • Use npm bin to get the path to the binary files within node_modules, then add this to your PATH. See this answer: https://stackoverflow.com/questions/9679932/how-to-use-executables-from-a-package-installed-locally-in-node-modules – Private_GER Jul 06 '22 at 21:07

0 Answers0