是否可以运行npx工具在Azure中执行包 [英] Is it possible to run the npx tool to execute packages in Azure

查看:74
本文介绍了是否可以运行npx工具在Azure中执行包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以运行npx工具在Azure App服务(Web应用程序)中执行包.

Is it possible to run the npx tool to execute packages in Azure App service (Web application).

我正在使用:

  • 节点:v10.19.0
  • npm:v6.13.4

如果我在本地计算机上浏览到nodejs,则可以看到npx.cmd工具,但是如果我在天蓝色的情况下也这样做,则看不到它.

If i browse to nodejs on my local machine I can see the npx.cmd tool but if i do the same in azure i don't see it.

我尝试运行 npm i -g npx 进行安装,但是安装到一些随机的本地appdata文件夹中.

I tried running npm i -g npx which installed it, but to some random local appdata folder.

推荐答案

经过测试,我发现在Windows操作环境下,无法使用 npm i -g npx 进行安装.

After my testing, I saw that under the windows operating environment, it is impossible to install with npm i -g npx.

但是如果您需要使用 npx ,则可以选择Linux操作系统.

But if you need to use npx, you can choose the Linux operating system.

这篇关于是否可以运行npx工具在Azure中执行包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆