mauron85 / cordova-plugin-background-geolocation-example

51 stars 54 forks source link

Could not install from "@mauron85/cordova-plugin-background-geolocation@~3.1.0" as it does not contain a package.json file. #32

Open mitLinkwok opened 4 years ago

mitLinkwok commented 4 years ago

{ Error: npm: Command failed with exit code 1 Error output: npm ERR! code ENOLOCAL npm ERR! Could not install from "@mauron85/cordova-plugin-background-geolocation@~3.1.0" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in: npm ERR! /home/mit/.npm/_logs/2020-01-30T09_33_11_614Z-debug.log at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/superspawn.js:135:23) at ChildProcess.emit (events.js:198:13) at maybeClose (internal/child_process.js:982:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) stderr: 'npm ERR! code ENOLOCAL\nnpm ERR! Could not install from "@mauron85/cordova-plugin-background-geolocation@~3.1.0" as it does not contain a package.json file.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!

giuliastully commented 4 years ago

I have same problem. How can you solve it?

hatimox commented 4 years ago

hello @giuliastully @mitLinkwok i just found the solution here