适用于Windows的node.js和npm [英] node.js and npm for windows

查看:79
本文介绍了适用于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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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