无法使用最新的Meteor 1.6.1创建项目

时间:2018-03-20 15:14:41

标签: meteor

我使用Chocolatey安装了Meteor 1.6.1。

然后我第一次尝试创建一个新的Meteor项目,我得到了以下错误

PS E:\> meteor create react_project
=> Errors while creating your project

While downloading blaze@2.3.2...:
error: unable to verify the first certificate

While downloading blaze-html-templates@1.1.2...:
error: unable to verify the first certificate

While downloading blaze-tools@1.0.10...:
error: unable to verify the first certificate

While downloading caching-html-compiler@1.1.2...:
error: unable to verify the first certificate

While downloading html-tools@1.0.11...:
error: unable to verify the first certificate

While downloading htmljs@1.0.11...:
error: unable to verify the first certificate

While downloading spacebars@1.0.15...:
error: unable to verify the first certificate

While downloading spacebars-compiler@1.1.3...:
error: unable to verify the first certificate

While downloading templating@1.3.2...:
error: unable to verify the first certificate

While downloading templating-compiler@1.3.3...:
error: unable to verify the first certificate

While downloading templating-runtime@1.3.2...:
error: unable to verify the first certificate

While downloading templating-tools@1.1.2...:
error: unable to verify the first certificate

While downloading ui@1.0.13...:
error: unable to verify the first certificate

PS E:\> meteor --version
Meteor 1.6.1

我还浏览了https://github.com/meteor/meteor/issues/7499

也试过设置

set http_proxy=http://corporate.proxy.server.intranet:8080/
set https_proxy=http://corporate.proxy.server.intranet:8080/

然后还尝试在创建项目之前使用命令设置注册表,

npm config set registry http://registry.npmjs.org/ --global

还尝试了以下命令,

npm config set strict-ssl false

仍未解决我的问题

有什么建议吗?

1 个答案:

答案 0 :(得分:1)

我浪费了一整天试图做这么多奇怪的实验。但最后有一个这样的实验对我有用。

我正在使用chrome。所以我决定安装“TOUCH VPN”作为扩展,运行它,然后尝试在我的Windows PowerShell和VOILA中运行相同的命令!它起作用,下面是我的电脑上如何处理如此奇怪问题的快照。

enter image description here