干净地将Nativescript降级为2.5

干净地将Nativescript降级为2.5,nativescript,downgrade,Nativescript,Downgrade,由于在将TNS升级到3.0(我使用了条形码扫描仪和Xing解码器插件)之后,我的应用程序(在2.5中运行得非常好)出现了一些问题,因此我需要将我的环境恢复到升级之前的状态 但我还没有找到一个正式的方式来干净地执行2.5降级 有人能帮我吗?提前感谢尝试以下步骤: npm uninstall -g nativescript npm cache clean npm i -g nativescript@2.5.0 remove node_modules platforms directory in

由于在将TNS升级到3.0(我使用了条形码扫描仪和Xing解码器插件)之后,我的应用程序(在2.5中运行得非常好)出现了一些问题,因此我需要将我的环境恢复到升级之前的状态

但我还没有找到一个正式的方式来干净地执行2.5降级


有人能帮我吗?提前感谢

尝试以下步骤:

npm uninstall -g nativescript

npm cache clean

npm i -g nativescript@2.5.0

remove node_modules platforms directory in your project

revert your package.json to the version before update to 3.0(angular, typescript versions...)

tns platform add android@2.5.0

tns platform add ios@2.5.0

tns run ios or android

您还可以查看此博客以了解更多说明

请尝试以下步骤:

npm uninstall -g nativescript

npm cache clean

npm i -g nativescript@2.5.0

remove node_modules platforms directory in your project

revert your package.json to the version before update to 3.0(angular, typescript versions...)

tns platform add android@2.5.0

tns platform add ios@2.5.0

tns run ios or android
您也可以查看此博客以了解更多说明