dpa99c / react-native-launch-navigator

A React Native module for launching today's most popular navigation/ride apps to navigate to a destination.
143 stars 34 forks source link

Install Trouble ? #23

Closed Tilenozz closed 4 years ago

Tilenozz commented 4 years ago

hello , i tried to install this package on 2 computers and the result is the same.

npm install --save react-native-launch-navigator

react-native-launch-navigator@1.0.6 postinstall E:\rn\Beta2.0\Hurry\node_modules\react-native-launch-navigator node scripts/postinstall.js

internal/validators.js:112 throw new ERR_INVALID_ARG_TYPE(name, 'string', value); ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object at validateString (internal/validators.js:112:11) at Object.join (path.js:375:7) at Object. (E:\rn\Beta2.0\Hurry\node_modules\react-native-launch-navigator\scripts\ios.link_helpers.js:45:23) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Module.require (internal/modules/cjs/loader.js:849:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (E:\rn\Beta2.0\Hurry\node_modules\react-native-launch-navigator\scripts\postinstall.js:3:21) { code: 'ERR_INVALID_ARG_TYPE' }

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react-native-launch-navigator@1.0.6 postinstall: node scripts/postinstall.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-native-launch-navigator@1.0.6 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Is this my trouble or package ? Regards

dpa99c commented 4 years ago

Looking at your path it looks like you're using Windows and a have a directory name containing a . - Beta2.0. Given the line number referenced in the stacktrace, I would speculate this is screwing up the nodejs path module from resolving the filepath. Try removing the dot from your directory name.

Also try cloning the example project to a drive root directory and building this as a known working reference.

Tilenozz commented 4 years ago

You was right ! tyvm