简体   繁体   English

不能用 npm 安装任何模块。 错误:spawn C:\Users\…Microsoft VS Code ENOENT

[英]Cant install any modules with npm. Error:spawn C:\Users\…Microsoft VS Code ENOENT

Screen dump of errors npm install (some module) dosent work.屏幕转储错误npm 安装(某些模块)dosent 工作。 It leaves me with some errors starting with error: spawn: c:\my-vsc-directory它给我留下了一些以错误开头的错误: spawn: c:\my-vsc-directory

I have checked my environment PATH's PATH I have tried this: npm config set python "c:\Python27\python.exe"我检查了我的环境 PATH 的PATH我试过这个: npm config set python "c:\Python27\python.exe"

I have this installation of both vsc and nodejs on two other computers running without issues....so i think i messed upp something here.我在另外两台运行没有问题的计算机上安装了 vsc 和 nodejs ......所以我想我在这里搞砸了一些东西。 Cant find it though.虽然找不到。

With npm config edit i found msbuild_path: C:\path to vsc.通过 npm 配置编辑,我发现 msbuild_path: C:\path to vsc。 I removed it and it worked.我删除了它并且它起作用了。 Maybe someone can tell me how it got there?也许有人可以告诉我它是如何到达那里的?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM