在ubuntu中通过npm安装nativescript并显示如下:
npm错误! tar.unpack解压缩错误/tmp/npm-3522-abb70788/registry.npmjs.org/_40nativescript/schematics-executor/-/schematics-executor-0.0.2.tgz npm ERR!提取失败https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz npm WARN重试将重试,最后一次尝试时出错:错误:读取ECONNRESET npm ERR!提取失败https://registry.npmjs.org/glob/-/glob-7.0.6.tgz npm WARN重试将重试,最后一次尝试时出错:错误:读取ECONNRESET npm ERR!提取失败https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz npm WARN重试将重试,最后一次尝试时出错:错误:读取ECONNRESET npm ERR!提取失败https://registry.npmjs.org/js-yaml/-/js-yaml-3.5.5.tgz npm WARN重试将重试,最后一次尝试时出错:错误:读取ECONNRESET npm ERR!提取失败https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz npm WARN重试将重试,最后一次尝试时出错:错误:读取ECONNRESET npm ERR! tar.unpack解压缩错误/tmp/npm-3522-abb70788/registry.npmjs.org/plist/-/plist-2.1.0.tgz npm ERR!提取失败https://registry.npmjs.org/tslint/-/tslint-5.4.3.tgz npm WARN重试将重试,最后一次尝试时出错:错误:读取ECONNRESET npm ERR!提取失败https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz npm WARN重试将重试,最后一次尝试时出错:错误:读取ECONNRESET npm ERR!提取失败https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz npm WARN重试将重试,最后一次尝试时出错:错误:读取ECONNRESET npm ERR! tar.unpack解压缩错误/tmp/npm-3522-abb70788/registry.npmjs.org/qs/-//qs-5.2.0.tgz npm ERR! tar.unpack解压缩错误/tmp/npm-3522-abb70788/registry.npmjs.org/qs/-//qs-5.2.0.tgz npm ERR! tar.unpack解压缩错误/tmp/npm-3522-abb70788/registry.npmjs.org/commander/-/commander-2.17.1.tgz npm ERR! tar.unpack解压缩错误/tmp/npm-3522-abb70788/registry.npmjs.org/commander/-/commander-2.17.1.tgz npm ERR! tar.unpack解压缩错误/tmp/npm-3522-abb70788/registry.npmjs.org/plist/-/plist-2.0.1.tgz npm ERR! tar.unpack解压缩错误/tmp/npm-3522-abb70788/registry.npmjs.org/plist/-/plist-2.0.1.tgz npm ERR!提取失败https://registry.npmjs.org/async/-/async-2.6.1.tgz npm WARN重试将重试,最后一次尝试时出错:错误:读取ECONNRESET