A
A
Alexander Wolf2016-05-17 16:22:30
linux
Alexander Wolf, 2016-05-17 16:22:30

How to run npm in "ubuntu on windows"?

Good day, comrades! :)
The Insider Preview update finally came today, deployed ubuntu, everything was fine until I started installing npm packages. Almost all packages complain about "shasum check failed" during installation:

[email protected]:~/sms$ npm i express
npm ERR! Linux 3.4.0+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "i" "express"
npm ERR! node v4.4.4
npm ERR! npm  v2.15.1

npm ERR! shasum check failed for /tmp/npm-7546-8bbeda45/registry.npmjs.org/mime-db/-/mime-db-1.23.0.tgz
npm ERR! Expected: a31b4070adaea27d732ea333740a64d0ec9a6659
npm ERR! Actual:   2fe76c0614a9e2e451fc1f4ca4c4455a7b56bb18
npm ERR! From:     https://registry.npmjs.org/mime-db/-/mime-db-1.23.0.tgz
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!     /home/jwo1f/sms/npm-debug.log

Maybe there are some tricks with the ears to get around this problem? Until they released a patch :)
PS: when you try to manually unpack any package that npm downloaded, it falls out like this:
spoiler
[email protected]:/tmp/npm-7500-332e364c/registry.npmjs.org/swig/-$ tar xzvf swig-1.4.2.tgz
tar: Ignoring unknown extended header keyword 'NODETAR.depth'
tar: Ignoring unknown extended header keyword 'NODETAR.follow'
tar: Ignoring unknown extended header keyword 'NODETAR.ignoreFiles.0'
tar: Ignoring unknown extended header keyword 'NODETAR.ignoreFiles.1'
tar: Ignoring unknown extended header keyword 'NODETAR.ignoreFiles.2'
tar: Ignoring unknown extended header keyword 'NODETAR.package.name'
tar: Ignoring unknown extended header keyword 'NODETAR.package.version'
tar: Ignoring unknown extended header keyword 'NODETAR.package.description'
tar: Ignoring unknown extended header keyword 'NODETAR.package.keywords.0'
tar: Ignoring unknown extended header keyword 'NODETAR.package.keywords.1'
tar: Ignoring unknown extended header keyword 'NODETAR.package.keywords.2'
tar: Ignoring unknown extended header keyword 'NODETAR.package.keywords.3'
tar: Ignoring unknown extended header keyword 'NODETAR.package.keywords.4'
tar: Ignoring unknown extended header keyword 'NODETAR.package.keywords.5'
tar: Ignoring unknown extended header keyword 'NODETAR.package.keywords.6'
tar: Ignoring unknown extended header keyword 'NODETAR.package.keywords.7'
tar: Ignoring unknown extended header keyword 'NODETAR.package.repository.type'
tar: Ignoring unknown extended header keyword 'NODETAR.package.repository.url'
tar: Ignoring unknown extended header keyword 'NODETAR.package.author'
tar: Ignoring unknown extended header keyword 'NODETAR.package.dependencies.uglify-js'
tar: Ignoring unknown extended header keyword 'NODETAR.package.dependencies.optimist'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.lodash'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.express'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.nodelint'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.mocha'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.expect.js'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.still'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.less'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.mocha-phantomjs'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.blanket'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.travis-cov'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.phantomjs'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.browserify'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.file'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.jsdoc'
tar: Ignoring unknown extended header keyword 'NODETAR.package.license'
tar: Ignoring unknown extended header keyword 'NODETAR.package.main'
tar: Ignoring unknown extended header keyword 'NODETAR.package.engines.node'
tar: Ignoring unknown extended header keyword 'NODETAR.package.bin.swig'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.prepublish'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.test'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.blanket.pattern'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.travis-cov.threshold'
tar: Ignoring unknown extended header keyword 'NODETAR.package.bugs.url'
tar: Ignoring unknown extended header keyword 'NODETAR.type'
tar: Ignoring unknown extended header keyword 'SCHILY.dev'
tar: Ignoring unknown extended header keyword 'SCHILY.nlink'
tar: Ignoring unknown extended header keyword 'NODETAR.blksize'
tar: Ignoring unknown extended header keyword 'SCHILY.ino'
tar: Ignoring unknown extended header keyword 'NODETAR.blocks'
package/package.json
tar: Ignoring unknown extended header keyword 'NODETAR.depth'
tar: Ignoring unknown extended header keyword 'NODETAR.follow'
tar: Ignoring unknown extended header keyword 'NODETAR.ignoreFiles.0'
tar: Ignoring unknown extended header keyword 'NODETAR.ignoreFiles.1'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.prepublish'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.test'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.blanket.pattern'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.travis-cov.threshold'
tar: Ignoring unknown extended header keyword 'NODETAR.package.bugs.url'
tar: Ignoring unknown extended header keyword 'NODETAR.type'
tar: Ignoring unknown extended header keyword 'SCHILY.dev'
tar: Ignoring unknown extended header keyword 'SCHILY.nlink'
tar: Ignoring unknown extended header keyword 'NODETAR.blksize'
tar: Ignoring unknown extended header keyword 'SCHILY.ino'
tar: Ignoring unknown extended header keyword 'NODETAR.blocks'
package/.npmignore
tar: Ignoring unknown extended header keyword 'NODETAR.depth'
tar: Ignoring unknown extended header keyword 'NODETAR.package.author'
tar: Ignoring unknown extended header keyword 'NODETAR.package.dependencies.uglify-js'
tar: Ignoring unknown extended header keyword 'NODETAR.package.dependencies.optimist'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.lodash'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.express'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.nodelint'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.mocha'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.expect.js'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.still'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.less'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.mocha-phantomjs'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.blanket'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.travis-cov'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.phantomjs'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.browserify'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.file'
tar: Ignoring unknown extended header keyword 'NODETAR.package.devDependencies.jsdoc'
tar: Ignoring unknown extended header keyword 'NODETAR.package.license'
tar: Ignoring unknown extended header keyword 'NODETAR.package.main'
tar: Ignoring unknown extended header keyword 'NODETAR.package.engines.node'
tar: Ignoring unknown extended header keyword 'NODETAR.package.bin.swig'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.prepublish'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.test'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.blanket.pattern'
tar: Ignoring unknown extended header keyword 'NODETAR.package.scripts.travis-cov.threshold'
tar: Ignoring unknown extended header keyword 'NODETAR.package.bugs.url'
tar: Ignoring unknown extended header keyword 'NODETAR.type'
tar: Ignoring unknown extended header keyword 'SCHILY.dev'
tar: Ignoring unknown extended header keyword 'SCHILY.nlink'
tar: Ignoring unknown extended header keyword 'NODETAR.blksize'
tar: Ignoring unknown extended header keyword 'SCHILY.ino'
tar: Ignoring unknown extended header keyword 'NODETAR.blocks'
package/README.md
tar: Skipping to next header
package/README.md
tar: Skipping to next header

gzip: stdin: invalid compressed data--crc error

gzip: stdin: invalid compressed data--length error
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Wolf, 2016-05-18
@mannaro

I solved the problem by installing the stock nodejs from the ubuntu repositories. True, a little outdated, but working.

#
#algooptimize #bottize, 2016-05-17
@user004

https://github.com/npm/npm/issues/2701
?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question