适用于Windows的node.js和npm

编程入门 行业动态 更新时间:2024-10-24 18:24:54
本文介绍了适用于Windows的node.js和npm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使node.js和npm在Windows计算机上工作(在mac ox和ubuntu上对我来说工作得很好)。安装完成,没有任何错误,但是当我尝试使用npm安装任何东西时,出现以下错误:

I am trying to get node.js and npm working on a windows computer (It works perfectly fine for me on mac ox and ubuntu). The installation completed without any errors but when I try to install anything with npm I get the following error:

示例:

npm install express Error: ENOENT, stat 'C:\Users\siva.sivakumaran\AppData\Roaming\npm'

有人可以帮我解决这个问题吗?

Can someone help me out with this issue?

推荐答案

我在AppData / Roaming下添加了文件夹npm,它对我有用。

I added the folder npm under AppData/Roaming and it worked for me.

更多推荐

适用于Windows的node.js和npm

本文发布于:2023-11-28 19:42:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643707.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:适用于   Windows   node   js   npm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!