NativeScript / NativeScript/plugins

[nativescript/localize] It cannot be installed in a site where there is no NS

オープン
#172 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
206
フォーク
123
平均マージ
2日 1時間
マージ済み PR(30日)
1

説明

I want to install it in a monorepo package outside the NS app but it gives an error when trying to install, I think it would be nice to be able to accept this

npm ERR! code 1
npm ERR! path C:\wordspaces\ns\monorepo\packages\core\core-native\node_modules\@nativescript\localize
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node postinstall
npm ERR! node:internal/modules/cjs/loader:936
npm ERR!   throw err;
npm ERR!   ^
npm ERR!
npm ERR! Error: Cannot find module '@nativescript/hook'
npm ERR! Require stack:
npm ERR! - C:\wordspaces\ns\monorepo\packages\core\core-native\node_modules\@nativescript\localize\postinstall.js
npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR!     at require (node:internal/modules/cjs/helpers:94:18)
npm ERR!     at Object.<anonymous> (C:\wordspaces\ns\monorepo\packages\core\core-native\node_modules\@nativescript\localize\postinstall.js:1:1)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1101:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR!     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   requireStack: [
npm ERR!     'C:\\wordspaces\\ns\\monorepo\\packages\\core\\core-native\\node_modules\\@nativescript\\localize\\postinstall.js'
npm ERR!   ]
npm ERR! }

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

NativeScript アプリなしでモノレポパッケージからのインストールを再現し、その後 postinstall.js と @nativescript/hook の使用方法を調査します。このコンテキストで期待される動作を確認し、npm のインストールが MODULE_NOT_FOUND で失敗しなくなったことを検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js, typescript
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。