با سلام دوستان من میخواستم طبق داکیومنشن خود map.ir پکیج react-native برای استفاده از نقششون نصب کنم ولی با ارور زیر برخورد میکنم.
دستور:
npm install mapir-react-native-sdk
خطا:
npm WARN deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
> mapir-mapbox@2.0.6 preinstall /home/sajadspeed/React_Native_Project/AccountingMobileAdmin/node_modules/mapir-mapbox
> npm run fetch:ios:sdk
npm ERR! code EACCES
npm ERR! syscall scandir
npm ERR! path /root/.npm/_logs
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 1000:1001 "/root/.npm"
glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/root/.npm/_logs'
}
> mapir-mapbox@2.0.6 fetch:ios:sdk /home/sajadspeed/React_Native_Project/AccountingMobileAdmin/node_modules/mapir-mapbox
> node ./scripts/download-mapbox-gl-native-ios-if-on-mac.js 2.2.1
npm ERR! Callback called more than once.
npm WARN jscodeshift@0.11.0 requires a peer of @babel/preset-env@^7.1.6 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN mapir-mapbox@2.0.6 requires a peer of react@^16.0.0-alpha || ^16.0.0-beta || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 243
npm ERR! mapir-mapbox@2.0.6 preinstall: `npm run fetch:ios:sdk`
npm ERR! Exit status 243
npm ERR!
npm ERR! Failed at the mapir-mapbox@2.0.6 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-10-21T21_40_16_274Z-debug.log
ممنون میشم کمکم کنید توی گیتهابشون هم گفتم ولی فکر نکنم سریع جواب بدن منم کارم یکم عجلهای است.
@hesammousavi
چرا اینقدر توی این فروم همه بی تفاوتن، به قطع خیلی از دوستان تجربه استفاده را دارن خوب یه راهنمایی بکنید خواهشا
@hesammousavi
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟