[英]npm run build on windows 10 gives This app can't run on your PC
The issue for me was that I am using nvm, and for reasons I don't yet know, when I try to set my node version to 12.14.0, and then run nvm list, no versions are selected.我的问题是我正在使用 nvm,出于我还不知道的原因,当我尝试将节点版本设置为 12.14.0,然后运行 nvm list 时,没有选择任何版本。 I went back to 13.8.0 and nvm list showed that 13.8.0 was selected.
我回到 13.8.0 并且 nvm list 显示选择了 13.8.0。
Long story short, make sure you have a selected node version.长话短说,确保你有一个选定的节点版本。
you should follow one of two option:您应该遵循以下两个选项之一:
Option 1 – Setup by running the .msi installation file选项 1 – 通过运行 .msi 安装文件进行设置
Option 2 – Setup by extracting .zip file选项 2 – 通过解压缩 .zip 文件进行设置
See the link below for more details : install Node.js and NPM on Windows 10有关更多详细信息,请参阅下面的链接: 在 Windows 10 上安装 Node.js 和 NPM
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.