在 Windows 上 npm install EACCES 错误 [英] npm install EACCES error on windows

查看:96
本文介绍了在 Windows 上 npm install EACCES 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试以管理员身份运行 cmd,更改程序文件中 nodejs 文件夹的权限,以管理员身份登录,运行/norprofile...,甚至以安全模式运行命令.运行npm install uglify-js"时总是出现同样的错误.

I've tried to run cmd as administrator, to change permissions on nodejs folder in Program Files, to login as Administrator, to runas /norprofile..., even to run command in safe mode. Always the same error when I run "npm install uglify-js".

C:\Users\user123>npm install uglify-js
npm ERR! Error: connect EACCES
npm ERR!     at errnoException (net.js:904:11)
npm ERR!     at Object.afterConnect [as oncomplete] (net.js:895:19)
npm ERR!  { [Error: connect EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'connect' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "uglify-js"
npm ERR! cwd C:\Users\user123
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! syscall connect
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! stack Error: connect EACCES
npm ERR! stack     at errnoException (net.js:904:11)
npm ERR! stack     at Object.afterConnect [as oncomplete] (net.js:895:19)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\user123\npm-debug.log
npm ERR! not ok code 0

C:\Users\user123>

有人知道如何解决这个问题吗?

Anybody have an idea how to solve this?

推荐答案

关闭卡巴斯基后,可以连接服务器下载节点模块

After turn off the kaspersky, it can connect the server to download node modules

这篇关于在 Windows 上 npm install EACCES 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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