如何升级到NativeScript 5?

如何升级到NativeScript 5?,nativescript,upgrade,nativescript-angular,Nativescript,Upgrade,Nativescript Angular,我在NativeScript 4.2上有一个带有Angular的移动应用程序。如何升级到NativeScript 5.0 我还想从NativeScript CLI开始使用预览应用程序。按照中的升级说明进行操作。该页面还提供了一个链接,指向中断更改 下面是这些命令的摘要 # NativeScript CLI npm install -g nativescript # Application Upgrade tns update # Platform Upgrade tns platform r

我在NativeScript 4.2上有一个带有Angular的移动应用程序。如何升级到NativeScript 5.0


我还想从NativeScript CLI开始使用预览应用程序。

按照中的升级说明进行操作。该页面还提供了一个链接,指向中断更改

下面是这些命令的摘要

# NativeScript CLI
npm install -g nativescript

# Application Upgrade
tns update

# Platform Upgrade
tns platform remove android
tns platform add android
tns platform remove ios
tns platform add ios

# tns-core-modules Upgrade
npm install tns-core-modules@latest --save

# TypeScript Upgrade
npm i nativescript-dev-typescript@latest --save-dev
./node_modules/.bin/ns-upgrade-tsconfig

# Angular Upgrade
npm i nativescript-angular@latest --save
./node_modules/.bin/update-app-ng-deps
npm i

# Webpack Upgrade
npm i nativescript-dev-webpack --save-dev
./node_modules/.bin/update-ns-webpack --deps --configs
对于Windows用户,请使用Windows路径分隔符和.cmd文件扩展名

.\node_modules\.bin\ns-upgrade-tsconfig.cmd
.\node_modules\.bin\update-app-ng-deps.cmd
.\node_modules\.bin\update-ns-webpack.cmd --deps --configs
我也在使用nativescriptui。以下是我必须运行的命令

tns plugin remove nativescript-ui-sidedrawer
tns plugin add nativescript-ui-sidedrawer

tns plugin remove nativescript-ui-dataform
tns plugin add nativescript-ui-dataform

...
通过运行tns info确认您正在使用最新版本

tns info
您现在可以使用预览应用程序。运行命令

tns preview

请按照中的升级说明进行操作。该页面还提供了一个链接,指向中断更改

下面是这些命令的摘要

# NativeScript CLI
npm install -g nativescript

# Application Upgrade
tns update

# Platform Upgrade
tns platform remove android
tns platform add android
tns platform remove ios
tns platform add ios

# tns-core-modules Upgrade
npm install tns-core-modules@latest --save

# TypeScript Upgrade
npm i nativescript-dev-typescript@latest --save-dev
./node_modules/.bin/ns-upgrade-tsconfig

# Angular Upgrade
npm i nativescript-angular@latest --save
./node_modules/.bin/update-app-ng-deps
npm i

# Webpack Upgrade
npm i nativescript-dev-webpack --save-dev
./node_modules/.bin/update-ns-webpack --deps --configs
对于Windows用户,请使用Windows路径分隔符和.cmd文件扩展名

.\node_modules\.bin\ns-upgrade-tsconfig.cmd
.\node_modules\.bin\update-app-ng-deps.cmd
.\node_modules\.bin\update-ns-webpack.cmd --deps --configs
我也在使用nativescriptui。以下是我必须运行的命令

tns plugin remove nativescript-ui-sidedrawer
tns plugin add nativescript-ui-sidedrawer

tns plugin remove nativescript-ui-dataform
tns plugin add nativescript-ui-dataform

...
通过运行tns info确认您正在使用最新版本

tns info
您现在可以使用预览应用程序。运行命令

tns preview

只需遵循。

只需遵循。

您好,有关此问题的任何帮助,请重新编写NativeScript?您好,有关于这个问题的帮助吗?