我正在尝试使用以下命令在 ubuntu 上安装 cordova
$ sudo npm install -g cordava
以下错误是什么意思?
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ansi-regex-88d497bc/package.json'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/string_decoder-91c3bf4f/package.json'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ansi-align-df792235/package.json'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ansi-regex-88d497bc/index.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/string_decoder-91c3bf4f/.npmignore'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ansi-align-df792235/README.md'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ansi-regex-88d497bc/license'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/string_decoder-91c3bf4f/README.md'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ansi-align-df792235/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/subarg-35893add/test/arg.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ansi-regex-88d497bc/readme.md'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/string_decoder-91c3bf4f/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ansi-align-df792235/index.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/text-table-cd7a86ef/test/align.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/subarg-35893add/test/recursive.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/browserify-transform-tools-593d182b/test/falafelTransformTest.coffee'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ansi-align-df792235/CHANGELOG.md'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/text-table-cd7a86ef/test/ansi-colors.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/browserify-transform-tools-593d182b/test/functionTransformTest.coffee'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/text-table-cd7a86ef/test/center.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/text-table-cd7a86ef/test/dotalign.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/browserify-transform-tools-593d182b/test/loadConfigTest.coffee'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/text-table-cd7a86ef/test/doubledot.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/browserify-transform-tools-593d182b/test/mocha.opts'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/uglify-js-44befdbf/lib/minify.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/text-table-cd7a86ef/test/table.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/browserify-transform-tools-593d182b/test/requireTransformTest.coffee'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/uglify-js-44befdbf/lib/mozilla-ast.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/browserify-transform-tools-593d182b/test/skipFileTest.coffee'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/eslint-plugin-import-5bbd6267/lib/rules/prefer-default-export.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/browserify-transform-tools-593d182b/test/stringTransformTest.coffee'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/eslint-plugin-import-5bbd6267/lib/rules/unambiguous.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/browserify-transform-tools-593d182b/CHANGELOG.md'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/browserify-transform-tools-593d182b/run-test.sh'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/handlebars-ad286266/dist/amd/handlebars/compiler/helpers.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/browserify-0e18e2a3/test/global/node_modules/aaa/index.js'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/cordova/node_modules/eslint-config-standard):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Unexpected end of JSON input while parsing near '...rd/-/eslint-config-st'
6114 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova"
6115 verbose node v11.10.0
6116 verbose npm v6.8.0
6117 error Unexpected end of JSON input while parsing near '...pNzlRJK3YppKVOnMZpBIf'
6118 verbose exit [ 1, true ]