Getting error when installing Bugsnag 'Error: spawn npm ENOENT'

Viewed 550

this is the first time I post here so apologies if I don't follow some rules or incorrect formatting. I'm making an app using React Native and Expo and when I try to install bugsnag I get this error.

$ npx bugsnag-expo-cli init
√ @bugsnag/expo does not appear to be installed, do you want to install it? ... yes
√ If you want the latest version of @bugsnag/expo hit enter, otherwise type the version you want ... latest
√ Using yarn or npm? » npm
> Installing @bugsnag/expo with npm. This could take a while!

  Error: spawn npm ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
      at onErrorNT (internal/child_process.js:465:16)
      at processTicksAndRejections (internal/process/task_queues.js:80:21)
1 Answers
Related