NativeScript / NativeScript/plugins
demo not working : Cannot find module 'plugins/dist/packages/detox/postinstall.js'
Đang mở
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 206
- Fork
- 123
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với các entry point npm run setup và npm start, sau đó kiểm tra bản build của apps.demo-angular.ios và đường dẫn dist/packages/detox được tạo như được đề cập trong lỗi. Xác nhận lý do postinstall.js bị thiếu và kiểm tra rằng bản demo Angular iOS chạy thành công mà không gặp lỗi MODULE_NOT_FOUND.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- ios, node.js
- Lĩnh vực
- build-system, mobile
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100