Unable to Update CLI
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, node.js
- Lĩnh vực
- cli
Hướng nghiên cứu
Bắt đầu bằng cách so sánh tệp thực thi được which tns báo cáo với đường dẫn cài đặt bên dưới .npm-global/lib/node_modules/nativescript, sau đó chạy tns --version sau lệnh npm install -g nativescript được ghi trong tài liệu. Hoàn tất khi tệp thực thi tns đang hoạt động báo cáo phiên bản 6.1.2 thay vì 5.1.0; issue không nêu tệp nguồn hoặc bài kiểm thử nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Environment
- CLI: 5.1.0
- OS: macOS Mojave version 10.14.4
Describe the bug
I am attempting to update the CLI to 6.1.2 however am having some issues during the upgrade process. I follow the upgrade instructions in the documentation by running 'npm install -g nativescript' which then prints out the following:
> nativescript@5.1.1 preuninstall /Users/myuser/.npm-global/lib/node_modules/nativescript
> node preuninstall.js
/Users/myuser/.npm-global/bin/nativescript -> /Users/myuser/.npm-global/lib/node_modules/nativescript/bin/tns
/Users/myuser/.npm-global/bin/tns -> /Users/myuser/.npm-global/lib/node_modules/nativescript/bin/tns
> fsevents@1.2.9 install /Users/myuser/.npm-global/lib/node_modules/nativescript/node_modules/fsevents
> node install
node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/Users/myuser/.npm-global/lib/node_modules/nativescript/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote
> nativescript@6.1.2 postinstall /Users/myuser/.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:
tns 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/
+ nativescript@6.1.2
added 124 packages from 115 contributors, removed 51 packages and updated 178 packages in 11.277s
However when checking the version using 'tns --version' it still shows 5.1.0.
I have attempted to completely uninstall the CLI and to confirm I check that it is completely uninstalled by attempting to run a tns command, as well as checking 'which tns' - both of which seems to show it is completely deleted. However, reinstalling nativescript always leads it back to 5.1.0.
Running the command 'which tns' results in the following path:
/usr/local/bin/tns
At this point I am stuck as to what to do to fix this, however my belief is that the issue lies in the path above not being equal to the path showed during the install process of /.npm-global/lib/node_modules/nativescript. Any help would be greatly appreciated.
Thank you!
- 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
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.
Issue khác của NativeScript/nativescript-cli
-
in-progress
NativeScript/nativescript-cli#6140 · 2 bình luận · 1 người được giao ·
-
NativeScript/nativescript-cli#6090 · 1 người được giao ·
-
in progress
NativeScript/nativescript-cli#6015 · 1 reaction · 1 người được giao ·
-
question
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
NativeScript/nativescript-cli#5992 · 5 bình luận ·
-
feature-pending-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
NativeScript/nativescript-cli#5975 ·
Tất cả issue của NativeScript/nativescript-cli
Issue tương tự
-
Daemon passes --experimental-wasm-jspi unconditionally on Node >= 24; Node 26 rejects the flag Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Automattic/studio#4908 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
sugarlabs/musicblocks#8847 ·
-
client-controller-update ta-bot-triage team-money-movement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
MetaMask/metamask-mobile#36594 ·
-
ci-failure-cause test-failure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100