nativescript - 'tns' 不是内部或外部命令,也不是可运行的程序或批处理文件。原生脚本

标签 nativescript tns

我是 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/

相关文章:

Oracle - 我使用什么 TNS 名称文件?

javascript - nativescript 创建 2 个应用程序而不是 1 个

asp.net - 本地 IIS 上的 Oracle ORA-12154 错误,但 Visual Studio 开发服务器上没有

nativescript - 如何使用 NativeScript 创建复杂的 UI 组件(前座位图)

checkbox - 将标签添加到复选框/开关 Angular 2

nativescript - 如何在 NativeScript 上添加自定义图标字体

sql - 如何在wireshark中仅导出可打印文本(或任何其他数据包属性)

javascript - 将 MQTT NPM 模块导入 NativeScript

nativescript - 如何在 NativeScript 中设置正确的资源路径?

oracle - 使用 EZCONNECT 语法时 sqlplus 收到 ORA-12504