[英]Getting “EACCES” error in Node.js application
今天我通過卸載舊版本更新了節點版本。 我最近安裝的版本是 4.5.0 LTS。 安裝后,當我嘗試安裝新的 npm 時,它不起作用並給我以下錯誤
C:\Users\myuser
λ npm install -g yo
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo"
npm ERR! node v0.12.15
npm ERR! npm v2.15.1
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! syscall connect
npm ERR! Error: connect EACCES
npm ERR! at exports._errnoException (util.js:746:11)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1012: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! Please include the following file with any support request:
npm ERR! C:\Users\myuser\npm-debug.log
我已經在 Powershell 中使用具有管理員權限的命令行進行了嘗試。 還嘗試安裝其他幾個插件。 什么都行不通。 還關閉了防火牆並嘗試過,沒有運氣。 安裝了舊版本的 NodeJS,問題仍然存在。
我使用的是 Windows 10。我檢查了我是否在代理后面,但我沒有。
我找到了我的問題的解決方案。
問題是我的病毒防護 Kespersky Endpoint Security 10 阻止了我機器中的節點。
當我將它添加到白名單時,它運行良好。
謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.