NativeScript / NativeScript/plugins
demo not working : Cannot find module 'plugins/dist/packages/detox/postinstall.js'
オープン
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 206
- フォーク
- 123
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 1
説明
Hi,
Angular demo apps is not working.
Here the steps i follow :
git clone git@github.com:NativeScript/plugins.git
cd plugins
npm run setup
npm start
within npm start :
- @nativescript.build-all
- apps.demo-angular.ios
The log :
Running NativeScript CLI within apps/demo-angular
ns debug ios --no-hmr --force
---
Searching for devices...
Unable to install dependencies. Make sure your package.json is valid and all dependencies are correct. Error is: Command npm failed with exit code 1 Error output:
npm ERR! code 1
npm ERR! path /Users/alexist/plugins/dist/packages/detox
npm ERR! command failed
npm ERR! command sh -c -- node postinstall.js
npm ERR! node:internal/modules/cjs/loader:1080
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot find module '/Users/alexist/plugins/dist/packages/detox/postinstall.js'
npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
npm ERR! at Module._load (node:internal/modules/cjs/loader:922:27)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
npm ERR! at node:internal/main/run_main_module:23:47 {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! requireStack: []
npm ERR! }
npm ERR!
npm ERR! Node.js v18.16.1
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/alexist/.npm/_logs/2023-11-07T16_50_18_973Z-debug-0.log
Done.
> NX Running target ios for project demo-angular and 71 tasks it depends on failed
My environment :
- os : macos
- yarn : 1.22.19
- node : v18.16.1
- npm : 8.19.4
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず npm run setup と npm start のエントリポイントから始め、次に apps.demo-angular.ios のビルドと、エラーで言及されている生成された dist/packages/detox パスを調査します。postinstall.js がない理由を確認し、Angular iOS デモが MODULE_NOT_FOUND エラーなしで正常に実行されることを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios, node.js
- 領域
- build-system, mobile
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100