Nvm: OSX Sierra node installation failed; Checksums does not match.

Created on 19 Nov 2016  路  4Comments  路  Source: nvm-sh/nvm

Hello there,
I'm trying to install node.js using nvm 0.32.1. It fails. As you could see from the logs below, it says that checksums are different and the difference is just a slash at the beginning.
``
Tagays-MacBook-Pro:~ serbiant$ nvm i 6

################################################################## 100.0%

Computing checksum with shasum -a 256
Checksums do not match: '\392e511ca0d6203c80700ed753187535e04069d0df0074cbfd1e4f1bd571d4c5' found, '392e511ca0d6203c80700ed753187535e04069d0df0074cbfd1e4f1bd571d4c5' expected.
Binary download failed, trying source.
Detected that you have 8 CPU thread(s)
Set the number of jobs to 8 - 1 = 7 jobs to speed up the build

################################################################## 100.0%

Computing checksum with shasum -a 256
Checksums do not match: '\a98997ca3a4d10751f0ebe97839b2308a31ae884b4203cda0c99cf36bc7fe3bf' found, 'a98997ca3a4d10751f0ebe97839b2308a31ae884b4203cda0c99cf36bc7fe3bf' expected.
nvm: install v6.9.1 failed!
``

I'm not sure whether it's nvm or my environment issue. Any help is appreciated. Thanks!

Mac OS installing nvm non-issue / invalid

Most helpful comment

@PeterDaveHello thanks for taking a look, just figured that out.
I just didn't copy the second line of the instruction

 export NVM_DIR="$HOME/.nvm"
  . "/usr/local/opt/nvm/nvm.sh"

Now it works great. Anyway, thanks for the quick help! Closing the issue.

All 4 comments

@serbiant I tried on my Mac and this is the result:

PeterDaveHello@Peters-Air ~ $ nvm debug
nvm --version: v0.32.1
$SHELL: /bin/bash
$HOME: /Users/PeterDaveHello
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
nvm current: v6.9.1
which node: $NVM_DIR/versions/node/v6.9.1/bin/node
which iojs:
which npm: $NVM_DIR/versions/node/v6.9.1/bin/npm
npm config get prefix: $NVM_DIR/versions/node/v6.9.1
npm root -g: $NVM_DIR/versions/node/v6.9.1/lib/node_modules

PeterDaveHello@Peters-Air ~ $ nvm install 6
######################################################################## 100.0%
Computing checksum with shasum -a 256
Checksums matched!
Now using node v6.9.1 (npm v3.10.8)

PeterDaveHello@Peters-Air ~ $ nvm i 7
######################################################################## 100.0%
Computing checksum with shasum -a 256
Checksums matched!
Now using node v7.1.0 (npm v3.10.9)

       v0.12.15
         v4.5.0
         v6.6.0
->       v6.9.1
         v7.1.0
         system
default -> 4 (-> v4.5.0)
node -> stable (-> v7.1.0) (default)
stable -> 7.1 (-> v7.1.0) (default)
iojs -> N/A (default)
lts/* -> lts/boron (-> v6.9.1)
lts/argon -> v4.6.2 (-> N/A)
lts/boron -> v6.9.1

PeterDaveHello@Peters-Air ~ $ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.12.1 (16B2555)
      Kernel Version: Darwin 16.1.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Peter鈥檚 MacBook Air
      User Name: Peter Dave Hello (PeterDaveHello)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 6 days 10:03

Would you like to give us your nvm debug result?

Sure @PeterDaveHello . Here it is:

Tagays-MacBook-Pro:~ serbiant$ nvm debug
nvm --version: v0.32.1
$SHELL: /bin/bash
$HOME: /Users/serbiant
$NVM_DIR: '/usr/local/opt/nvm
Saving session...
...saving history...
...completed.
Deleting expired sessions...none found.'
sed: 1: "s#/usr/local/opt/nvm
Sa ...": unterminated substitute pattern
$PREFIX: ''
sed: 1: "s#/usr/local/opt/nvm
Sa ...": unterminated substitute pattern
$NPM_CONFIG_PREFIX: ''
sed: 1: "s#/usr/local/opt/nvm
Sa ...": unterminated substitute pattern
nvm current: 
sed: 1: "s#/usr/local/opt/nvm
Sa ...": unterminated substitute pattern
which node: 
sed: 1: "s#/usr/local/opt/nvm
Sa ...": unterminated substitute pattern
which iojs: 
sed: 1: "s#/usr/local/opt/nvm
Sa ...": unterminated substitute pattern
which npm: 
sed: 1: "s#/usr/local/opt/nvm
Sa ...": unterminated substitute pattern
npm config get prefix: 
sed: 1: "s#/usr/local/opt/nvm
Sa ...": unterminated substitute pattern
npm root -g: 
Tagays-MacBook-Pro:~ serbiant$ 

Okay, so looks like there is something broken, may be sed usage.
Any additional package management tool installed? Like MacPorts or homebrew.

@PeterDaveHello thanks for taking a look, just figured that out.
I just didn't copy the second line of the instruction

 export NVM_DIR="$HOME/.nvm"
  . "/usr/local/opt/nvm/nvm.sh"

Now it works great. Anyway, thanks for the quick help! Closing the issue.

Was this page helpful?
0 / 5 - 0 ratings