NativeScript / NativeScript/nativescript-cli
Problem with NativeScript 7.0 installation
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 1.1k
- Fork
- 204
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 8
Mô tả
I upgraded nativescript cli to 7.0.8 with npm i -g nativescript the version of node.js is v12.18.4
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated node-uuid@1.4.7: Use uuid module instead
npm WARN deprecated lodash-node@2.4.1: This package is discontinued. Use lodash@^4.0.0.
npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
nativescript@7.0.8 preuninstall /Users/xxx/.npm-global/lib/node_modules/nativescript
node preuninstall.js
/Users/xxx/.npm-global/bin/tns -> /Users/xxx/.npm-global/lib/node_modules/nativescript/bin/tns
/Users/xx/.npm-global/bin/nsc -> /Users/xxx/.npm-global/lib/node_modules/nativescript/bin/tns
/Users/xxx/.npm-global/bin/nativescript -> /Users/xxx/.npm-global/lib/node_modules/nativescript/bin/tns
/Users/xxx/.npm-global/bin/ns -> /Users/xxx/.npm-global/lib/node_modules/nativescript/bin/tns
nativescript@7.0.8 postinstall /Users/xxx/.npm-global/lib/node_modules/nativescript
node postinstall.js
Autocompletion is already enabled
You have successfully installed the NativeScript CLI!
Your next step is to create a new project:
ns create
New to NativeScript? Try the tutorials in NativeScript Playground: https://play.nativescript.org
If you have any questions, check Stack Overflow: https://stackoverflow.com/questions/tagged/nativescript and our public Slack channel: https://nativescriptcommunity.slack.com/
npm WARN notsup Unsupported engine for xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"12.18.4","npm":"6.14.6"})
npm WARN notsup Not compatible with your version of node/npm: xmlbuilder@2.2.1
npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.3.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN marked-terminal@3.1.1 requires a peer of marked@^0.4.0 || ^0.5.0 but none is installed. You must install peer dependencies yourself.
- nativescript@7.0.8
updated 1 package in 17.043s
but when i run the ns create command it gives me this error
bash: ns create: command not found
when i run tns info
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 6.5.0 and the latest available version is 7.0.8.
✔ Component tns-core-modules has 6.5.20 version and is up to date.
✔ Component tns-android has 6.5.3 version and is up to date.
✔ Component tns-ios has 7.0.0-beta.3-v8-2020-06-20-121910-01 version and is up to date.
Can someone help me?
Thank you in advance
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
Sử dụng các lệnh được báo cáo ns create và tns info làm điểm bắt đầu; trước tiên hãy xác minh tệp thực thi nào được phân giải sau khi cài đặt NativeScript 7.0.8 và so sánh nó với component 6.5.0 được báo cáo. Được xem là hoàn tất khi ns create chạy mà không gặp lỗi command-not-found và sự không khớp phiên bản có lời giải thích đã được xác minh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, nodejs
- Lĩnh vực
- cli
- 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
- 25/100