npm ERR!注册表错误解析json – 尝试在Windows 8中安装Cordova for Ionic Frame
发布时间:2020-11-17 11:36:03 所属栏目:Windows 来源:互联网
导读:我试图在Windows 8系统中安装Ionic框架,并试图首先安装Cordova。 我试图安装Cordova时遇到这个错误 Your environment has been set up for using Node.js 0.12.4 (x64) and npm.C:UsersSworupnpm install -g cordova ionicnpm ERR! registry e
我试图在Windows 8系统中安装Ionic框架,并试图首先安装Cordova。 我试图安装Cordova时遇到这个错误 Your environment has been set up for using Node.js 0.12.4 (x64) and npm. C:UsersSworup>npm install -g cordova ionic npm ERR! registry error parsing json npm ERR! tar.unpack untar error C:UsersSworupAppDataLocalTempnpm-1424-df7f 43feregistry.npmjs.orgunderscore-underscore-1.7.0.tgz npm ERR! tar.unpack untar error C:UsersSworupAppDataLocalTempnpm-1424-df7f 43feregistry.npmjs.orgnpm-npm-2.1.3.tgz npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:Program Filesnodejs\node.exe" "C:Program Filesnodejs node_modulesnpmbinnpm-cli.js" "install" "-g" "cordova" "ionic" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! code ECONNRESET npm ERR! errno ECONNRESET npm ERR! syscall read npm ERR! network read ECONNRESET npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settin gs. npm ERR! network npm ERR! network If you are behind a proxy,please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! tar.unpack untar error C:UsersSworupAppDataLocalTempnpm-1424-df7f 43feregistry.npmjs.orgprompt-prompt-0.2.12.tgz npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:Program Filesnodejs\node.exe" "C:Program Filesnodejs node_modulesnpmbinnpm-cli.js" "install" "-g" "cordova" "ionic" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! unexpected eof npm ERR! npm ERR! If you need help,you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! C:UsersSworupnpm-debug.log C:UsersSworup> 我的系统配置如下: C:WindowsSystem32>npm -v 2.10.1 C:WindowsSystem32>node -v v0.12.4 C:WindowsSystem32>git --version git version 1.9.4.msysgit.1 我已经做了 C:WindowsSystem32>npm cache clear 在运行安装命令之前不要使用。 我尝试将注册表更改为http仍然没有用。 我试着分开安装Ionic框架,还是没有运气。 我尝试安装Phonegap,与上述相同的错误。 我只是停留在这一点上,不知道该怎么办。 在我的情况下,我有一个非常老版本的npm。使用sudo npm安装npm -g升级npm可以解决我的问题。另外我也做了rm -rf node_modules和npm缓存清理和npm配置设置注册表“http://registry.npmjs.org/”(编辑:百色站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 32位数据转8位数据和8位数据转32位数据
- windows – CreateWindowEx的lpClassName参数如何是可选的
- Windows BATCH:如何为单个脚本禁用QuickEdit模式?
- Windows C线程参数传递
- 在WPF中的所有Windows中应用按钮样式
- windows-runtime – 将Action绑定到XAML中UserControl的属性
- Windows Filtering Platform用户模式或内核模式?
- NodeJS、NPM安装配置步骤(windows版本) 以及环境变量详解
- xaml – Windows 8 App,更改BackButtonStyle的颜色
- windows – CFileDialog :: OnInitDialog()不调用
推荐文章
站长推荐
- Vulkan Tutorial 01 开发环境搭建之Windows
- PHP7安装Redis扩展教程【Linux与Windows平台】
- 如何在Windows 8.1上安装PyBluez?
- 标签为Windows的SSH工具?
- windows-phone-8 – 添加辅助Windows Phone 8磁贴
- npm ERR!注册表错误解析json – 尝试在Windows
- Microsoft Unit Testing Framework for C++
- winapi – Win32 No-MFC中的消息映射
- Windows下wamp php单元测试工具PHPUnit安装及生成
- windows – 为什么没有64位版本的VS2013?
热点阅读