demo not working : Cannot find module 'plugins/dist/packages/detox/postinstall.js'
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- ios, node.js
- 領域
- build-system, mobile
研究方向
先從 npm run setup 和 npm start 入口開始,然後檢查 apps.demo-angular.ios 的建置,以及錯誤中提到的產生路徑 dist/packages/detox。確認 postinstall.js 缺失的原因,並驗證 Angular iOS demo 能夠在沒有 MODULE_NOT_FOUND 錯誤的情況下成功執行。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- TypeScript
- 星號
- 206
- 分支
- 123
- 平均合併
- 2 天 1 小時
- 30 天內合併 PR
- 1
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NativeScript/plugins 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 92/100
NativeScript/plugins#680 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
NativeScript/plugins#671 ·
-
難度 1/5 1 小時以內 新手友好度 72/100
NativeScript/plugins#640 ·
-
難度 4/5 3-5 天 新手友好度 45/100
NativeScript/plugins#668 ·
-
難度 4/5 3-5 天 新手友好度 45/100
NativeScript/plugins#665 · 1 則留言 ·
查看 NativeScript/plugins 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
-
area:tools bug good first issue help wanted priority:P2
難度 2/5 1-3 小時 新手友好度 90/100
TaewoooPark/Motifcode#14 ·
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
newrelic-experimental/preflight#793 · 1 則留言 ·
-
bug 🐞
難度 2/5 1-3 小時 新手友好度 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
BasedHardware/omi#15320 ·