[{"data":1,"prerenderedAt":538},["ShallowReactive",2],{"content-query-63OtmonEyK":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"body":9,"_type":532,"_id":533,"_source":534,"_file":535,"_stem":536,"_extension":537},"\u002Fguides\u002Ftroubleshooting","guides",false,"","แก้ปัญหา",{"type":10,"children":11,"toc":524},"root",[12,19,26,32,134,140,161,195,201,238,243,286,292,297,302,342,347,353,387,393,453,458,518],{"type":13,"tag":14,"props":15,"children":16},"element","h1",{"id":8},[17],{"type":18,"value":8},"text",{"type":13,"tag":20,"props":21,"children":23},"h2",{"id":22},"ติดตั้งแล้วได้-404-ทั้งที่แพ็กเกจมีอยู่",[24],{"type":18,"value":25},"ติดตั้งแล้วได้ 404 ทั้งที่แพ็กเกจมีอยู่",{"type":13,"tag":27,"props":28,"children":29},"p",{},[30],{"type":18,"value":31},"เกิดจาก token npm ในเครื่องทำให้คำขอแนบ auth ระหว่างที่ registry ยัง propagate ไม่ครบ",{"type":13,"tag":33,"props":34,"children":38},"pre",{"className":35,"code":36,"language":37,"meta":7,"style":7},"language-sh shiki shiki-themes github-dark","npm cache clean --force\nunset NPM_TOKEN\nprintf 'registry=https:\u002F\u002Fregistry.npmjs.org\u002F\\n' > \u002Ftmp\u002Fclean-npmrc\nnpm i @one.origin\u002Fsandbox --userconfig=\u002Ftmp\u002Fclean-npmrc\n","sh",[39],{"type":13,"tag":40,"props":41,"children":42},"code",{"__ignoreMap":7},[43,72,86,111],{"type":13,"tag":44,"props":45,"children":48},"span",{"class":46,"line":47},"line",1,[49,55,61,66],{"type":13,"tag":44,"props":50,"children":52},{"style":51},"--shiki-default:#B392F0",[53],{"type":18,"value":54},"npm",{"type":13,"tag":44,"props":56,"children":58},{"style":57},"--shiki-default:#9ECBFF",[59],{"type":18,"value":60}," cache",{"type":13,"tag":44,"props":62,"children":63},{"style":57},[64],{"type":18,"value":65}," clean",{"type":13,"tag":44,"props":67,"children":69},{"style":68},"--shiki-default:#79B8FF",[70],{"type":18,"value":71}," --force\n",{"type":13,"tag":44,"props":73,"children":75},{"class":46,"line":74},2,[76,81],{"type":13,"tag":44,"props":77,"children":78},{"style":68},[79],{"type":18,"value":80},"unset",{"type":13,"tag":44,"props":82,"children":83},{"style":57},[84],{"type":18,"value":85}," NPM_TOKEN\n",{"type":13,"tag":44,"props":87,"children":89},{"class":46,"line":88},3,[90,95,100,106],{"type":13,"tag":44,"props":91,"children":92},{"style":68},[93],{"type":18,"value":94},"printf",{"type":13,"tag":44,"props":96,"children":97},{"style":57},[98],{"type":18,"value":99}," 'registry=https:\u002F\u002Fregistry.npmjs.org\u002F\\n'",{"type":13,"tag":44,"props":101,"children":103},{"style":102},"--shiki-default:#F97583",[104],{"type":18,"value":105}," >",{"type":13,"tag":44,"props":107,"children":108},{"style":57},[109],{"type":18,"value":110}," \u002Ftmp\u002Fclean-npmrc\n",{"type":13,"tag":44,"props":112,"children":114},{"class":46,"line":113},4,[115,119,124,129],{"type":13,"tag":44,"props":116,"children":117},{"style":51},[118],{"type":18,"value":54},{"type":13,"tag":44,"props":120,"children":121},{"style":57},[122],{"type":18,"value":123}," i",{"type":13,"tag":44,"props":125,"children":126},{"style":57},[127],{"type":18,"value":128}," @one.origin\u002Fsandbox",{"type":13,"tag":44,"props":130,"children":131},{"style":68},[132],{"type":18,"value":133}," --userconfig=\u002Ftmp\u002Fclean-npmrc\n",{"type":13,"tag":20,"props":135,"children":137},{"id":136},"npx-ขึ้น-could-not-determine-executable-to-run",[138],{"type":18,"value":139},"npx ขึ้น could not determine executable to run",{"type":13,"tag":27,"props":141,"children":142},{},[143,145,151,153,159],{"type":18,"value":144},"แท็ก ",{"type":13,"tag":40,"props":146,"children":148},{"className":147},[],[149],{"type":18,"value":150},"latest",{"type":18,"value":152}," ชี้ไปเวอร์ชันที่ไม่มี ",{"type":13,"tag":40,"props":154,"children":156},{"className":155},[],[157],{"type":18,"value":158},"bin",{"type":18,"value":160}," แก้ด้วย",{"type":13,"tag":33,"props":162,"children":164},{"className":35,"code":163,"language":37,"meta":7,"style":7},"npm dist-tag add create-oneorigin-app@1.0.0 latest\n",[165],{"type":13,"tag":40,"props":166,"children":167},{"__ignoreMap":7},[168],{"type":13,"tag":44,"props":169,"children":170},{"class":46,"line":47},[171,175,180,185,190],{"type":13,"tag":44,"props":172,"children":173},{"style":51},[174],{"type":18,"value":54},{"type":13,"tag":44,"props":176,"children":177},{"style":57},[178],{"type":18,"value":179}," dist-tag",{"type":13,"tag":44,"props":181,"children":182},{"style":57},[183],{"type":18,"value":184}," add",{"type":13,"tag":44,"props":186,"children":187},{"style":57},[188],{"type":18,"value":189}," create-oneorigin-app@1.0.0",{"type":13,"tag":44,"props":191,"children":192},{"style":57},[193],{"type":18,"value":194}," latest\n",{"type":13,"tag":20,"props":196,"children":198},{"id":197},"termux-ขึ้น-nvm-is-not-compatible-with-the-prefix",[199],{"type":18,"value":200},"Termux ขึ้น nvm is not compatible with the PREFIX",{"type":13,"tag":33,"props":202,"children":204},{"className":35,"code":203,"language":37,"meta":7,"style":7},"unset PREFIX\nnvm use 24\n",[205],{"type":13,"tag":40,"props":206,"children":207},{"__ignoreMap":7},[208,220],{"type":13,"tag":44,"props":209,"children":210},{"class":46,"line":47},[211,215],{"type":13,"tag":44,"props":212,"children":213},{"style":68},[214],{"type":18,"value":80},{"type":13,"tag":44,"props":216,"children":217},{"style":57},[218],{"type":18,"value":219}," PREFIX\n",{"type":13,"tag":44,"props":221,"children":222},{"class":46,"line":74},[223,228,233],{"type":13,"tag":44,"props":224,"children":225},{"style":51},[226],{"type":18,"value":227},"nvm",{"type":13,"tag":44,"props":229,"children":230},{"style":57},[231],{"type":18,"value":232}," use",{"type":13,"tag":44,"props":234,"children":235},{"style":68},[236],{"type":18,"value":237}," 24\n",{"type":13,"tag":27,"props":239,"children":240},{},[241],{"type":18,"value":242},"ถ้ายังไม่หาย ให้ใช้ Node ของ Termux โดยตรง",{"type":13,"tag":33,"props":244,"children":246},{"className":35,"code":245,"language":37,"meta":7,"style":7},"pkg install nodejs-lts -y\nnode -v\n",[247],{"type":13,"tag":40,"props":248,"children":249},{"__ignoreMap":7},[250,273],{"type":13,"tag":44,"props":251,"children":252},{"class":46,"line":47},[253,258,263,268],{"type":13,"tag":44,"props":254,"children":255},{"style":51},[256],{"type":18,"value":257},"pkg",{"type":13,"tag":44,"props":259,"children":260},{"style":57},[261],{"type":18,"value":262}," install",{"type":13,"tag":44,"props":264,"children":265},{"style":57},[266],{"type":18,"value":267}," nodejs-lts",{"type":13,"tag":44,"props":269,"children":270},{"style":68},[271],{"type":18,"value":272}," -y\n",{"type":13,"tag":44,"props":274,"children":275},{"class":46,"line":74},[276,281],{"type":13,"tag":44,"props":277,"children":278},{"style":51},[279],{"type":18,"value":280},"node",{"type":13,"tag":44,"props":282,"children":283},{"style":68},[284],{"type":18,"value":285}," -v\n",{"type":13,"tag":20,"props":287,"children":289},{"id":288},"turbo-ใช้บน-termux-ไม่ได้",[290],{"type":18,"value":291},"Turbo ใช้บน Termux ไม่ได้",{"type":13,"tag":27,"props":293,"children":294},{},[295],{"type":18,"value":296},"Turbo ไม่มีไบนารีสำหรับ Android หรือ aarch64-linux-android ไฟล์ที่โหลดมาเป็นซอร์ส Rust ต้องคอมไพล์เอง ไม่คุ้มกับเวลา",{"type":13,"tag":27,"props":298,"children":299},{},[300],{"type":18,"value":301},"ทางออกที่ใช้ได้จริงบนเครื่องคุณ: ใช้ npm scripts ตรงๆ",{"type":13,"tag":33,"props":303,"children":305},{"className":35,"code":304,"language":37,"meta":7,"style":7},"npm run dev\nnpm run build\n",[306],{"type":13,"tag":40,"props":307,"children":308},{"__ignoreMap":7},[309,326],{"type":13,"tag":44,"props":310,"children":311},{"class":46,"line":47},[312,316,321],{"type":13,"tag":44,"props":313,"children":314},{"style":51},[315],{"type":18,"value":54},{"type":13,"tag":44,"props":317,"children":318},{"style":57},[319],{"type":18,"value":320}," run",{"type":13,"tag":44,"props":322,"children":323},{"style":57},[324],{"type":18,"value":325}," dev\n",{"type":13,"tag":44,"props":327,"children":328},{"class":46,"line":74},[329,333,337],{"type":13,"tag":44,"props":330,"children":331},{"style":51},[332],{"type":18,"value":54},{"type":13,"tag":44,"props":334,"children":335},{"style":57},[336],{"type":18,"value":320},{"type":13,"tag":44,"props":338,"children":339},{"style":57},[340],{"type":18,"value":341}," build\n",{"type":13,"tag":27,"props":343,"children":344},{},[345],{"type":18,"value":346},"ถ้าจำเป็นต้องใช้ Turbo จริง ให้ย้ายไปทำบนเครื่องคอมพิวเตอร์หรือ CI",{"type":13,"tag":20,"props":348,"children":350},{"id":349},"npm-ขอ-otp-ตอน-publish",[351],{"type":18,"value":352},"npm ขอ OTP ตอน publish",{"type":13,"tag":33,"props":354,"children":356},{"className":35,"code":355,"language":37,"meta":7,"style":7},"npm publish --access public --otp=123456\n",[357],{"type":13,"tag":40,"props":358,"children":359},{"__ignoreMap":7},[360],{"type":13,"tag":44,"props":361,"children":362},{"class":46,"line":47},[363,367,372,377,382],{"type":13,"tag":44,"props":364,"children":365},{"style":51},[366],{"type":18,"value":54},{"type":13,"tag":44,"props":368,"children":369},{"style":57},[370],{"type":18,"value":371}," publish",{"type":13,"tag":44,"props":373,"children":374},{"style":68},[375],{"type":18,"value":376}," --access",{"type":13,"tag":44,"props":378,"children":379},{"style":57},[380],{"type":18,"value":381}," public",{"type":13,"tag":44,"props":383,"children":384},{"style":68},[385],{"type":18,"value":386}," --otp=123456\n",{"type":13,"tag":20,"props":388,"children":390},{"id":389},"push-ขึ้น-github-ถูกปฏิเสธ-fetch-first",[391],{"type":18,"value":392},"push ขึ้น GitHub ถูกปฏิเสธ fetch first",{"type":13,"tag":33,"props":394,"children":396},{"className":35,"code":395,"language":37,"meta":7,"style":7},"git pull --rebase origin main\ngit push -u origin main\n",[397],{"type":13,"tag":40,"props":398,"children":399},{"__ignoreMap":7},[400,428],{"type":13,"tag":44,"props":401,"children":402},{"class":46,"line":47},[403,408,413,418,423],{"type":13,"tag":44,"props":404,"children":405},{"style":51},[406],{"type":18,"value":407},"git",{"type":13,"tag":44,"props":409,"children":410},{"style":57},[411],{"type":18,"value":412}," pull",{"type":13,"tag":44,"props":414,"children":415},{"style":68},[416],{"type":18,"value":417}," --rebase",{"type":13,"tag":44,"props":419,"children":420},{"style":57},[421],{"type":18,"value":422}," origin",{"type":13,"tag":44,"props":424,"children":425},{"style":57},[426],{"type":18,"value":427}," main\n",{"type":13,"tag":44,"props":429,"children":430},{"class":46,"line":74},[431,435,440,445,449],{"type":13,"tag":44,"props":432,"children":433},{"style":51},[434],{"type":18,"value":407},{"type":13,"tag":44,"props":436,"children":437},{"style":57},[438],{"type":18,"value":439}," push",{"type":13,"tag":44,"props":441,"children":442},{"style":68},[443],{"type":18,"value":444}," -u",{"type":13,"tag":44,"props":446,"children":447},{"style":57},[448],{"type":18,"value":422},{"type":13,"tag":44,"props":450,"children":451},{"style":57},[452],{"type":18,"value":427},{"type":13,"tag":27,"props":454,"children":455},{},[456],{"type":18,"value":457},"ถ้าขึ้น unrelated histories",{"type":13,"tag":33,"props":459,"children":461},{"className":35,"code":460,"language":37,"meta":7,"style":7},"git pull origin main --allow-unrelated-histories --no-rebase\ngit push -u origin main\n",[462],{"type":13,"tag":40,"props":463,"children":464},{"__ignoreMap":7},[465,495],{"type":13,"tag":44,"props":466,"children":467},{"class":46,"line":47},[468,472,476,480,485,490],{"type":13,"tag":44,"props":469,"children":470},{"style":51},[471],{"type":18,"value":407},{"type":13,"tag":44,"props":473,"children":474},{"style":57},[475],{"type":18,"value":412},{"type":13,"tag":44,"props":477,"children":478},{"style":57},[479],{"type":18,"value":422},{"type":13,"tag":44,"props":481,"children":482},{"style":57},[483],{"type":18,"value":484}," main",{"type":13,"tag":44,"props":486,"children":487},{"style":68},[488],{"type":18,"value":489}," --allow-unrelated-histories",{"type":13,"tag":44,"props":491,"children":492},{"style":68},[493],{"type":18,"value":494}," --no-rebase\n",{"type":13,"tag":44,"props":496,"children":497},{"class":46,"line":74},[498,502,506,510,514],{"type":13,"tag":44,"props":499,"children":500},{"style":51},[501],{"type":18,"value":407},{"type":13,"tag":44,"props":503,"children":504},{"style":57},[505],{"type":18,"value":439},{"type":13,"tag":44,"props":507,"children":508},{"style":68},[509],{"type":18,"value":444},{"type":13,"tag":44,"props":511,"children":512},{"style":57},[513],{"type":18,"value":422},{"type":13,"tag":44,"props":515,"children":516},{"style":57},[517],{"type":18,"value":427},{"type":13,"tag":519,"props":520,"children":521},"style",{},[522],{"type":18,"value":523},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":74,"depth":74,"links":525},[526,527,528,529,530,531],{"id":22,"depth":74,"text":25},{"id":136,"depth":74,"text":139},{"id":197,"depth":74,"text":200},{"id":288,"depth":74,"text":291},{"id":349,"depth":74,"text":352},{"id":389,"depth":74,"text":392},"markdown","content:guides:troubleshooting.md","content","guides\u002Ftroubleshooting.md","guides\u002Ftroubleshooting","md",1793258342481]