Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2013 有没有建议如何在windows中的代理后安装grunt?_Visual Studio 2013_Gruntjs_Npm - Fatal编程技术网

Visual studio 2013 有没有建议如何在windows中的代理后安装grunt?

Visual studio 2013 有没有建议如何在windows中的代理后安装grunt?,visual-studio-2013,gruntjs,npm,Visual Studio 2013,Gruntjs,Npm,我正在尝试将grunt安装在公司代理背后的windows计算机上 我已经安装了node和npm,我可以从命令行看到它们的版本。但是,当我尝试安装grunt时,正如grunt站点中所描述的那样,但是我遇到了以下错误,我不知道如何解决它 以下是我收到的错误消息: npm.cmd: npm ERR! Error: CERT_UNTRUSTED At line:1 char:4 + npm <<<< install -g grunt-cli + CategoryInfo : No

我正在尝试将grunt安装在公司代理背后的windows计算机上

我已经安装了node和npm,我可以从命令行看到它们的版本。但是,当我尝试安装grunt时,正如grunt站点中所描述的那样,但是我遇到了以下错误,我不知道如何解决它

以下是我收到的错误消息:

npm.cmd: npm ERR! Error: CERT_UNTRUSTED
At line:1 char:4 + npm <<<< install -g grunt-cli + CategoryInfo : NotSpecified:
(npm ERR! Error: CERT_UNTRUSTED:String) [], RemoteException + FullyQualifiedErrorId: 
NativeCommandError

npm ERR! at SecurePair.<anonymous> (tls.js:1367:32), npm ERR! at SecurePair.emit (events.js:92:17), npm ERR! at SecurePair.maybeInitFinished (tls.js:979:10), npm ERR! at CleartextStream.read [as _read] (tls.js:471:13), npm ERR! at CleartextStream.Readable.read (_stream_readable.js:340:10), npm ERR! at EncryptedStream.write [as _write] (tls.js:368:25)
npm ERR! at doWrite (_stream_writable.js:225:10), npm ERR! at writeOrBuffer (_stream_writable.js:215:5), npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:182:11), npm ERR! at at write (_stream_readable.js:601:24), npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/npm/npm/issues>, npm ERR! System Windows_NT 6.1.7601, npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt-cli"
npm ERR!cwd C:\Dev\gruntTest2, npm ERR! node -v v0.10.31, npm ERR! npm -v 1.4.23
npm.cmd:npm ERR!错误:证书不受信任

在第1行char:4+npm中,您可以在自己的系统上运行代理(fiddler可以充当代理)

并将浏览器代理设置指向此代理

因为fiddler是在您的凭据下启动的,所以代理身份验证不再是问题


请记住在更改代理设置后重新启动程序

为了能够从npm安装grunt或其他任何东西,首先我需要使用以下命令:

npm配置设置严格ssl错误


我在stackoverflow和其他网站的不同地方找到了这个答案。但我用它作为参考答案。我还包括网络的代理地址,但在我更改严格的ssl配置之前,该地址不起作用。

很抱歉,我不明白您的答案。小提琴手会有什么帮助?对于这个错误,我理解某些类型的证书是不可信的:错误:CERT\u untrusted你能解释一下你的答案吗?