在终端';tns预览版&x27;命令不起作用。(NativeScript)
我想在本地运行我的NS应用程序。我从play.nativescript.org下载了这个项目,打开带有目标路径的cmd,然后按照以下步骤操作 第一步。安装最新的NativeScript CLI 在命令提示符或终端中键入以下命令在终端';tns预览版&x27;命令不起作用。(NativeScript),nativescript,nativescript-vue,Nativescript,Nativescript Vue,我想在本地运行我的NS应用程序。我从play.nativescript.org下载了这个项目,打开带有目标路径的cmd,然后按照以下步骤操作 第一步。安装最新的NativeScript CLI 在命令提示符或终端中键入以下命令 npm安装-gnativescript@latest 我已经成功安装了NativeScript CLI 第二步。预览你的应用程序 导航到项目文件夹并运行以下命令启动 预览你的应用程序 tns预览 当我输入命令时,我得到了这个错误 You are using the dep
npm安装-gnativescript@latest
我已经成功安装了NativeScript CLI
第二步。预览你的应用程序
导航到项目文件夹并运行以下命令启动
预览你的应用程序
tns预览
当我输入命令时,我得到了这个错误
You are using the deprecated nsconfig.json file. Just be aware that NativeScript 7 has an improved nativescript.config.(js|ts) file for when you're ready to upgrade this project.
npm WARN deprecated bfj-node4@5.3.1: Switch to the `bfj` package for fixes and new features!
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! code E404
npm ERR! 404 Not Found - GET https://github.com/thomasconner/javascript/tarball/67b7944366453a87226389d483ac1ad861e0e129npm ERR! 404
npm ERR! 404 'pubnub@https://github.com/thomasconner/javascript/tarball/67b7944366453a87226389d483ac1ad861e0e129' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'kinvey-nativescript-sdk'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dotor\AppData\Roaming\npm-cache\_logs\2020-10-01T09_47_56_177Z-debug.log
Command npm.cmd failed with exit code 1
您正在使用不推荐使用的nsconfig.json文件。请注意,NativeScript 7有一个改进的NativeScript.config.(js | ts)文件,可用于升级此项目。
npm警告不推荐的bfj-node4@5.3.1:切换到'bfj'软件包以获得修复和新功能!
npm警告已弃用request@2.88.2:请求已被否决,请参阅https://github.com/request/request/issues/3142
npm警告已弃用request@2.88.0:请求已被否决,请参阅https://github.com/request/request/issues/3142
npm警告弃用的内核-js@2.6.11:core js@不幸的是,play.nativescript.org导出的项目无法在nativescript版本7及更高版本下运行
目前,唯一的解决方案是使用npm install-g安装{N}CLInativescript@6.8.0
正如在github.com中therosko所写,使kinvey nativescript sdk的版本成为5.0.1
适合我。Src:您是否有更多信息?如果有,请进一步解释?为什么NS游乐场/预览版会鼓励您编写无法构建的应用程序?当你下载应用程序源代码时,它甚至会提示你运行tns preview
。我想你是想输入一个链接描述,但这是正确的github问题w/Usage contextI遇到了同样的问题,这很有效。只需更新版本就可以了。我认为面临这个问题的人是直接从NativeScript导出代码,这是这个旧引用附带的(我就是这么做的,oops)。谢谢