我是 NativeScript 的新手,目前正在执行此处描述的安装步骤 ( http://docs.nativescript.org/angular/tutorial/ng-chapter-1 ),我刚刚完成了 PowerShell 脚本的执行
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.ps1'))"
然后我跑
tns doctor
我得到
C:\>tns doctor 'tns' is not recognized as an internal or external command, operable program or batch file.
最佳答案
使用此代码
npm install --global nativescript
我有同样的问题和安装
nativescript
解决了。
关于nativescript - 'tns' 不是内部或外部命令,也不是可运行的程序或批处理文件。原生脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37040227/