NativeScript / NativeScript/plugins
[nativescript/localize] It cannot be installed in a site where there is no NS
オープン
まだ誰も着手していません。
- 主要言語
- 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! }
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
NativeScript アプリなしでモノレポパッケージからのインストールを再現し、その後 postinstall.js と @nativescript/hook の使用方法を調査します。このコンテキストで期待される動作を確認し、npm のインストールが MODULE_NOT_FOUND で失敗しなくなったことを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- node.js, typescript
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100