Meteor update --patch broke my app and now I can't run it

When I ran the meteor update --patch command I got a tone of errors. So I’m trying to tackle things from the top. Below is the first error:

C:\CodeBaseNVL9\Nuvol9-CRM>meteor update --patch
=> Errors while initializing project:

While loading package angular2-compilers@0.6.6:
error: Command failed: C:\WINDOWS\system32\cmd.exe /c C:\Users\Owner\AppData\Local.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_32\dev_bundle\bin\npm.cmd rebuild --update-binary
Cannot download “https://github.com/sass/node-sass/releases/download/v3.8.0/win32-ia32-57_binding.node”:

HTTP error 404 Not Found

I’m pretty desperate because my dev environment is down and have a tight time line.

Can you post the entire error log? There’s probably something in there about the root cause further down.

Since you’re on windows it’s probably a compilation problem. Do you have all the compilation dependencies for node-gyp installed?

If not, you can get everything set up using:

npm install --global windows-build-tools

Which will install all the tools and libraries that node-gyp requires to build native module addons like node-sass

1 Like

Here is the log output.

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Users\\Owner\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.6.0_1\\mt-os.windows.x86_64\\dev_bundle\\bin\\node.exe',
1 verbose cli   'C:\\Users\\Owner\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.6.0_1\\mt-os.windows.x86_64\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'rebuild',
1 verbose cli   '--update-binary' ]
2 info using npm@5.5.1
3 info using node@v8.9.3
4 info readInstalled object
5 verbose rebuild path, id [ 'C:\\Users\\Owner\\AppData\\Local\\.meteor\\packages\\angular2-compilers\\0.6.6\\plugin.Angular2_Compilers.os\\npm\\node_modules\\meteor\\barbatus_scss-compiler\\node_modules\\.temp-1o38xbd.uixv\\node_modules\\node-sass',
5 verbose rebuild   'node-sass@3.8.0' ]
6 silly rebuild set [ 'C:\\Users\\Owner\\AppData\\Local\\.meteor\\packages\\angular2-compilers\\0.6.6\\plugin.Angular2_Compilers.os\\npm\\node_modules\\meteor\\barbatus_scss-compiler\\node_modules\\.temp-1o38xbd.uixv\\node_modules\\node-sass' ]
7 info build C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.temp-1o38xbd.uixv\node_modules\node-sass
8 info lifecycle node-sass@3.8.0~preinstall: node-sass@3.8.0
9 info linkStuff node-sass@3.8.0
10 silly linkStuff node-sass@3.8.0 has C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.temp-1o38xbd.uixv\node_modules as its parent node_modules
11 verbose linkBins node-sass@3.8.0
12 verbose linkBins [ { 'node-sass': 'bin/node-sass' },
12 verbose linkBins   'C:\\Users\\Owner\\AppData\\Local\\.meteor\\packages\\angular2-compilers\\0.6.6\\plugin.Angular2_Compilers.os\\npm\\node_modules\\meteor\\barbatus_scss-compiler\\node_modules\\.temp-1o38xbd.uixv\\node_modules\\.bin',
12 verbose linkBins   false ]
13 verbose linkMans node-sass@3.8.0
14 verbose rebuildBundles node-sass@3.8.0
15 info lifecycle node-sass@3.8.0~install: node-sass@3.8.0
16 verbose lifecycle node-sass@3.8.0~install: unsafe-perm in lifecycle true
17 verbose lifecycle node-sass@3.8.0~install: PATH: C:\Users\Owner\AppData\Local\.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_64\dev_bundle\lib\node_modules\npm\bin\node-gyp-bin;C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.temp-1o38xbd.uixv\node_modules\node-sass\node_modules\.bin;C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.temp-1o38xbd.uixv\node_modules\.bin;C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.bin;C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\.bin;C:\Users\Owner\AppData\Local\.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_64\dev_bundle\bin;C:\Users\Owner\AppData\Local\.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_64\dev_bundle\lib\node_modules\.bin;C:\Users\Owner\AppData\Roaming\npm;C:\Program Files\nodejs\;C:\Program Files (x86)\Common Files\TEC-IT\TBarCode\10.2\;C:\Program Files\Common Files\TEC-IT\TBarCode\10.2\;C:\Program Files (x86)\PHP\v5.6;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\Owner\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Users\Owner\AppData\Local\Microsoft\WindowsApps;C:\Users\Owner\AppData\Roaming\npm;C:\Users\Owner\AppData\Local\.meteor\;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\dotnet\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\ExternalData\LocalCommands;C:\Program Files\Git\cmd;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs\;C:\Users\Owner\AppData\Local\Programs\Fiddler
18 verbose lifecycle node-sass@3.8.0~install: CWD: C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.temp-1o38xbd.uixv\node_modules\node-sass
19 silly lifecycle node-sass@3.8.0~install: Args: [ '/d /s /c', 'node scripts/install.js' ]
20 silly lifecycle node-sass@3.8.0~install: Returned: code: 0  signal: null
21 info lifecycle node-sass@3.8.0~postinstall: node-sass@3.8.0
22 verbose lifecycle node-sass@3.8.0~postinstall: unsafe-perm in lifecycle true
23 verbose lifecycle node-sass@3.8.0~postinstall: PATH: C:\Users\Owner\AppData\Local\.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_64\dev_bundle\lib\node_modules\npm\bin\node-gyp-bin;C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.temp-1o38xbd.uixv\node_modules\node-sass\node_modules\.bin;C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.temp-1o38xbd.uixv\node_modules\.bin;C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.bin;C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\.bin;C:\Users\Owner\AppData\Local\.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_64\dev_bundle\bin;C:\Users\Owner\AppData\Local\.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_64\dev_bundle\lib\node_modules\.bin;C:\Users\Owner\AppData\Roaming\npm;C:\Program Files\nodejs\;C:\Program Files (x86)\Common Files\TEC-IT\TBarCode\10.2\;C:\Program Files\Common Files\TEC-IT\TBarCode\10.2\;C:\Program Files (x86)\PHP\v5.6;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\Owner\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Users\Owner\AppData\Local\Microsoft\WindowsApps;C:\Users\Owner\AppData\Roaming\npm;C:\Users\Owner\AppData\Local\.meteor\;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\dotnet\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\ExternalData\LocalCommands;C:\Program Files\Git\cmd;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs\;C:\Users\Owner\AppData\Local\Programs\Fiddler
24 verbose lifecycle node-sass@3.8.0~postinstall: CWD: C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.temp-1o38xbd.uixv\node_modules\node-sass
25 silly lifecycle node-sass@3.8.0~postinstall: Args: [ '/d /s /c', 'node scripts/build.js' ]
26 silly lifecycle node-sass@3.8.0~postinstall: Returned: code: 1  signal: null
27 info lifecycle node-sass@3.8.0~postinstall: Failed to exec postinstall script
28 verbose stack Error: node-sass@3.8.0 postinstall: `node scripts/build.js`
28 verbose stack Exit status 1
28 verbose stack     at EventEmitter.<anonymous> (C:\Users\Owner\AppData\Local\.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_64\dev_bundle\lib\node_modules\npm\node_modules\npm-lifecycle\index.js:280:16)
28 verbose stack     at emitTwo (events.js:126:13)
28 verbose stack     at EventEmitter.emit (events.js:214:7)
28 verbose stack     at ChildProcess.<anonymous> (C:\Users\Owner\AppData\Local\.meteor\packages\meteor-tool\1.6.0_1\mt-os.windows.x86_64\dev_bundle\lib\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
28 verbose stack     at emitTwo (events.js:126:13)
28 verbose stack     at ChildProcess.emit (events.js:214:7)
28 verbose stack     at maybeClose (internal/child_process.js:925:16)
28 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
29 verbose pkgid node-sass@3.8.0
30 verbose cwd C:\Users\Owner\AppData\Local\.meteor\packages\angular2-compilers\0.6.6\plugin.Angular2_Compilers.os\npm\node_modules\meteor\barbatus_scss-compiler\node_modules\.temp-1o38xbd.uixv
31 verbose Windows_NT 10.0.15063
32 verbose argv "C:\\Users\\Owner\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.6.0_1\\mt-os.windows.x86_64\\dev_bundle\\bin\\node.exe" "C:\\Users\\Owner\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.6.0_1\\mt-os.windows.x86_64\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js" "rebuild" "--update-binary"
33 verbose node v8.9.3
34 verbose npm  v5.5.1
35 error code ELIFECYCLE
36 error errno 1
37 error node-sass@3.8.0 postinstall: `node scripts/build.js`
37 error Exit status 1
38 error Failed at the node-sass@3.8.0 postinstall script.
38 error This is probably not a problem with npm. There is likely additional logging output above.
39 verbose exit [ 1, true ]

Thanks so much for looking at this. I tried what you suggested and I still got the same error.

I’ve seen quite a number of people in these forums who had similar problems (the node-sass bindings cannot be downloaded).

Have you stored your code in a version control system? In this case, you can just revert the top-level files under .meteor/ and Meteor should revert to the previous version (framework and packages).

I did some additional research.

The node-sass version your build is trying to download does not match the node-sass version fourseven:scss uses if you specify the correct package version for Meteor 1.6+. (It should have been node-sass 4.5.3, not 3.8.0: https://github.com/fourseven/meteor-scss/blob/master/package.js)

Are you sure you’re using the correct version of fourseven:scss? You’ll need fourseven:scss@4.5.4: https://github.com/fourseven/meteor-scss

You can check (and set) the version in the .meteor/versions file.

(The problem itself comes up since the there is no download named win32-ia32-57_binding.node in the 3.8.0 release of node-sass, as you can see here: https://github.com/sass/node-sass/releases?after=v3.11.3)

1 Like

Here is what is in my .meteor/version file:

fourseven:scss@4.5.4

So I’m totally confused as to why or what is trying to bind to node-sass 3.8.0. I’ve updated node-sass as follows:

npm install -global node-sass

and

meteor npm install -global node-sass

to be safe but still get the same error. I will revert from 1.6.0 to previous version and try that.

This is really strange. But I’ve seen a similar problem report just recently (don’t remember the link, though). I’m not on Windows, so can’t help much. But I am also wondering why Meteor (oder npm) even tries to download the wrong node-sass version.

Just another guess: Have you tried to purge your global Meteor packages folder? According to your error report, it should live under C:\Users\Owner\AppData\Local.meteor\packages (under macOS it’s different)

Okay so I did some more searching and it looks like angular2-compilers is deprecated in favour of angular-compilers

The new angular-compilers bundles angular-scss-compiler which uses node-sass@4.7.2

Try replacing angular2-compilers with angular-compilers?

Thanks so much for your help. You have been very helpful.

I had to uninstall meteor node and reinstall meteor 1.5.2. So I will do that.

All this happened because I was trying to use a library that was forcing me to upgrade other libraries and it broke my environment. So now with this new information I will be able to move forward. Thanks again.

-Andrés Sosa

2 Likes