question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install Materialize meteor package

See original GitHub issue

Description

Installing the meteor package materialize:materialize even on an empty repo fails. I reinstalled Meteor, it didn’t solve my issue.

Repro Steps

meteor create test To create a basic empty meteor app. meteor add materialize:materialize

Very long error message :

 => Errors while adding packages:                                                                  
                                                                                                   
While loading package materialize:materialize@0.98.0:                                              
error: Command failed:                                                                             
C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\bi
n\npm.cmd                                                                                          
rebuild --update-binary                                                                            
node-pre-gyp ERR! Tried to download:                                                               
https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.15/fse-v1.0.15-node-v46-win32-ia32.tar.gz
                                                                                                   
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.15 and node@4.6.2 (node-v46        
ABI) (falling back to source compile with node-gyp)                                                
Traceback (most recent call last):                                                                 
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\gyp_main.py",                                                         
line 16, in <module>                                                                               
sys.exit(gyp.script_main())                                                                        
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\__init__.py",                                               
line 545, in script_main                                                                           
return main(sys.argv[1:])                                                                          
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\__init__.py",                                               
line 538, in main                                                                                  
return gyp_main(args)                                                                              
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\__init__.py",                                               
line 523, in gyp_main                                                                              
generator.GenerateOutput(flat_list, targets, data, params)                                         
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py",                                         
line 2003, in GenerateOutput                                                                       
sln_projects, project_objects, flat=msvs_version.FlatSolution())                                   
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py",                                         
line 1762, in _GatherSolutionFolders                                                               
return _DictsToFolders('', root, flat)                                                             
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py",                                         
line 1715, in _DictsToFolders                                                                      
for folder, contents in bucket.iteritems():                                                        
AttributeError: 'MSVSProject' object has no attribute 'iteritems'                                  
gyp ERR! configure error                                                                           
gyp ERR! stack Error: `gyp` failed with exit code: 1                                               
gyp ERR! stack     at ChildProcess.onCpExit                                                        
(C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\lib\configure.js:305:16)                                                  
gyp ERR! stack     at emitTwo (events.js:87:13)                                                    
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)                                          
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)       
gyp ERR! System Windows_NT 10.0.14393                                                              
gyp ERR! command                                                                                   
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\bin\\node.exe"                                                                           
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\lib\\node_modules\\node-gyp\\bin\\node-gyp.js"                                           
"configure" "--fallback-to-build"                                                                  
"--module=C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\materialize_materialize\\0.98.0\\npm\
\node_modules\\.temp-1jdosff\\node_modules\\fsevents\\lib\\binding\\Release\\node-v46-win32-ia32\\f
se.node"                                                                                           
"--module_name=fse"                                                                                
"--module_path=C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\materialize_materialize\\0.98.0\
\npm\\node_modules\\.temp-1jdosff\\node_modules\\fsevents\\lib\\binding\\Release\\node-v46-win32-ia
32"                                                                                                
gyp ERR! cwd                                                                                       
C:\Users\Ilan\AppData\Local\.meteor\packages\materialize_materialize\0.98.0\npm\node_modules\.temp-
1jdosff\node_modules\fsevents                                                                      
gyp ERR! node -v v4.6.2                                                                            
gyp ERR! node-gyp -v v3.4.0                                                                        
gyp ERR! not ok                                                                                    
node-pre-gyp ERR! build error                                                                      
node-pre-gyp ERR! stack Error: Failed to execute                                                   
'C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\b
in\node.exe                                                                                        
C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\li
b\node_modules\node-gyp\bin\node-gyp.js                                                            
configure --fallback-to-build                                                                      
--module=C:\Users\Ilan\AppData\Local\.meteor\packages\materialize_materialize\0.98.0\npm\node_modul
es\.temp-1jdosff\node_modules\fsevents\lib\binding\Release\node-v46-win32-ia32\fse.node            
--module_name=fse                                                                                  
--module_path=C:\Users\Ilan\AppData\Local\.meteor\packages\materialize_materialize\0.98.0\npm\node_
modules\.temp-1jdosff\node_modules\fsevents\lib\binding\Release\node-v46-win32-ia32'               
(1)                                                                                                
node-pre-gyp ERR! stack     at ChildProcess.<anonymous>                                            
(C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-pre-gyp\lib\util\compile.js:83:29)                                            
node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)                                           
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)                                 
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:854:16)                       
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit                                 
(internal/child_process.js:222:5)                                                                  
node-pre-gyp ERR! System Windows_NT 10.0.14393                                                     
node-pre-gyp ERR! command                                                                          
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\bin\\node.exe"                                                                           
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\lib\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp"                                      
"install" "--fallback-to-build"                                                                    
node-pre-gyp ERR! cwd                                                                              
C:\Users\Ilan\AppData\Local\.meteor\packages\materialize_materialize\0.98.0\npm\node_modules\.temp-
1jdosff\node_modules\fsevents                                                                      
node-pre-gyp ERR! node -v v4.6.2                                                                   
node-pre-gyp ERR! node-pre-gyp -v v0.6.30                                                          
node-pre-gyp ERR! not ok                                                                           
                                                                                                   
npm ERR! Windows_NT 10.0.14393                                                                     
npm ERR! argv                                                                                      
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\bin\\node.exe"                                                                           
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"                                                 
"rebuild" "--update-binary"                                                                        
npm ERR! node v4.6.2                                                                               
npm ERR! npm  v3.10.9                                                                              
npm ERR! code ELIFECYCLE                                                                           
npm ERR! fsevents@1.0.15 install: `node-pre-gyp install --fallback-to-build`                       
npm ERR! Exit status 1                                                                             
npm ERR!                                                                                           
npm ERR! Failed at the fsevents@1.0.15 install script 'node-pre-gyp install                        
--fallback-to-build'.                                                                              
npm ERR! Make sure you have the latest version of node.js and npm installed.                       
npm ERR! If you do, this is most likely a problem with the fsevents package,                       
npm ERR! not with npm itself.                                                                      
npm ERR! Tell the author that this fails on your system:                                           
npm ERR!     node-pre-gyp install --fallback-to-build                                              
npm ERR! You can get information on how to open an issue for this project with:                    
npm ERR!     npm bugs fsevents                                                                     
npm ERR! Or if that isn't available, you can get their info via:                                   
npm ERR!     npm owner ls fsevents                                                                 
npm ERR! There is likely additional logging output above.                                          
                                                                                                   
npm ERR! Please include the following file with any support request:                               
npm ERR!                                                                                           
C:\Users\Ilan\AppData\Local\.meteor\packages\materialize_materialize\0.98.0\npm\node_modules\.temp-
1jdosff\npm-debug.log                                                                              
node-pre-gyp ERR! Tried to download:                                                               
https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.15/fse-v1.0.15-node-v46-win32-ia32.tar.gz
                                                                                                   
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.15 and node@4.6.2 (node-v46        
ABI) (falling back to source compile with node-gyp)                                                
Traceback (most recent call last):                                                                 
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\gyp_main.py",                                                         
line 16, in <module>                                                                               
sys.exit(gyp.script_main())                                                                        
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\__init__.py",                                               
line 545, in script_main                                                                           
return main(sys.argv[1:])                                                                          
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\__init__.py",                                               
line 538, in main                                                                                  
return gyp_main(args)                                                                              
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\__init__.py",                                               
line 523, in gyp_main                                                                              
generator.GenerateOutput(flat_list, targets, data, params)                                         
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py",                                         
line 2003, in GenerateOutput                                                                       
sln_projects, project_objects, flat=msvs_version.FlatSolution())                                   
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py",                                         
line 1762, in _GatherSolutionFolders                                                               
return _DictsToFolders('', root, flat)                                                             
File                                                                                               
"C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py",                                         
line 1715, in _DictsToFolders                                                                      
for folder, contents in bucket.iteritems():                                                        
AttributeError: 'MSVSProject' object has no attribute 'iteritems'                                  
gyp ERR! configure error                                                                           
gyp ERR! stack Error: `gyp` failed with exit code: 1                                               
gyp ERR! stack     at ChildProcess.onCpExit                                                        
(C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-gyp\lib\configure.js:305:16)                                                  
gyp ERR! stack     at emitTwo (events.js:87:13)                                                    
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)                                          
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)       
gyp ERR! System Windows_NT 10.0.14393                                                              
gyp ERR! command                                                                                   
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\bin\\node.exe"                                                                           
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\lib\\node_modules\\node-gyp\\bin\\node-gyp.js"                                           
"configure" "--fallback-to-build"                                                                  
"--module=C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\materialize_materialize\\0.98.0\\npm\
\node_modules\\.temp-1jdosff\\node_modules\\fsevents\\lib\\binding\\Release\\node-v46-win32-ia32\\f
se.node"                                                                                           
"--module_name=fse"                                                                                
"--module_path=C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\materialize_materialize\\0.98.0\
\npm\\node_modules\\.temp-1jdosff\\node_modules\\fsevents\\lib\\binding\\Release\\node-v46-win32-ia
32"                                                                                                
gyp ERR! cwd                                                                                       
C:\Users\Ilan\AppData\Local\.meteor\packages\materialize_materialize\0.98.0\npm\node_modules\.temp-
1jdosff\node_modules\fsevents                                                                      
gyp ERR! node -v v4.6.2                                                                            
gyp ERR! node-gyp -v v3.4.0                                                                        
gyp ERR! not ok                                                                                    
node-pre-gyp ERR! build error                                                                      
node-pre-gyp ERR! stack Error: Failed to execute                                                   
'C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\b
in\node.exe                                                                                        
C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\li
b\node_modules\node-gyp\bin\node-gyp.js                                                            
configure --fallback-to-build                                                                      
--module=C:\Users\Ilan\AppData\Local\.meteor\packages\materialize_materialize\0.98.0\npm\node_modul
es\.temp-1jdosff\node_modules\fsevents\lib\binding\Release\node-v46-win32-ia32\fse.node            
--module_name=fse                                                                                  
--module_path=C:\Users\Ilan\AppData\Local\.meteor\packages\materialize_materialize\0.98.0\npm\node_
modules\.temp-1jdosff\node_modules\fsevents\lib\binding\Release\node-v46-win32-ia32'               
(1)                                                                                                
node-pre-gyp ERR! stack     at ChildProcess.<anonymous>                                            
(C:\Users\Ilan\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\l
ib\node_modules\node-pre-gyp\lib\util\compile.js:83:29)                                            
node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)                                           
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)                                 
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:854:16)                       
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit                                 
(internal/child_process.js:222:5)                                                                  
node-pre-gyp ERR! System Windows_NT 10.0.14393                                                     
node-pre-gyp ERR! command                                                                          
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\bin\\node.exe"                                                                           
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\lib\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp"                                      
"install" "--fallback-to-build"                                                                    
node-pre-gyp ERR! cwd                                                                              
C:\Users\Ilan\AppData\Local\.meteor\packages\materialize_materialize\0.98.0\npm\node_modules\.temp-
1jdosff\node_modules\fsevents                                                                      
node-pre-gyp ERR! node -v v4.6.2                                                                   
node-pre-gyp ERR! node-pre-gyp -v v0.6.30                                                          
node-pre-gyp ERR! not ok                                                                           
                                                                                                   
npm ERR! Windows_NT 10.0.14393                                                                     
npm ERR! argv                                                                                      
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\bin\\node.exe"                                                                           
"C:\\Users\\Ilan\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_3\\mt-os.windows.x86_32\\de
v_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"                                                 
"rebuild" "--update-binary"                                                                        
npm ERR! node v4.6.2                                                                               
npm ERR! npm  v3.10.9                                                                              
npm ERR! code ELIFECYCLE                                                                           
npm ERR! fsevents@1.0.15 install: `node-pre-gyp install --fallback-to-build`                       
npm ERR! Exit status 1                                                                             
npm ERR!                                                                                           
npm ERR! Failed at the fsevents@1.0.15 install script 'node-pre-gyp install                        
--fallback-to-build'.                                                                              
npm ERR! Make sure you have the latest version of node.js and npm installed.                       
npm ERR! If you do, this is most likely a problem with the fsevents package,                       
npm ERR! not with npm itself.                                                                      
npm ERR! Tell the author that this fails on your system:                                           
npm ERR!     node-pre-gyp install --fallback-to-build                                              
npm ERR! You can get information on how to open an issue for this project with:                    
npm ERR!     npm bugs fsevents                                                                     
npm ERR! Or if that isn't available, you can get their info via:                                   
npm ERR!     npm owner ls fsevents                                                                 
npm ERR! There is likely additional logging output above.                                          
                                                                                                   
npm ERR! Please include the following file with any support request:                               
npm ERR!                                                                                           
C:\Users\Ilan\AppData\Local\.meteor\packages\materialize_materialize\0.98.0\npm\node_modules\.temp-
1jdosff\npm-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:49 (27 by maintainers)

github_iconTop GitHub Comments

2reactions
haojia321commented, Feb 14, 2017

Awesome! It works now. Thanks @tomscholz Summary:

  1. Create a folder called “packages” in the root of your project
  2. CD into that folder and run git clone https://github.com/Dogfalo/materialize.git
  3. CD into materialize and run git fetch --tags
  4. In same folder, run git checkout v0.98.0
1reaction
abernixcommented, Jun 13, 2017

@tomscholz You only need to use.imply a package if you want the consumers of your package to have access to that package as well. For example, with this line, if someone installs materialize:materializethey will have access to the $ (and jQuery) variables in their application, even if they do not explicitly add the jquery dependency to their package themselves.

So, only set api.imply('jquery') if you want to give users jQuery if they use Materialize. If you just want to use jquery in materialize:materialize, then you only need api.use('jquery'). If you also don’t need jQuery, then you can remove jquery altogether. 😃

Hope this helps! More here in the docs, hopefully: https://docs.meteor.com/api/packagejs.html#PackageAPI-imply

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install materialize:matelialize - help - Meteor forums
I can't install materialize package for atmosphere and while doing it through npm it doesn't work. Error when calling.
Read more >
meteor error on adding materialize package - Stack Overflow
This seems to be a new problem with the latest version of the package. Do this to fix the problem: meteor remove materialize:materialize...
Read more >
Getting Started - Materialize
Learn how to easily start using Materialize in your website. Download. Materialize comes in two different forms. ... meteor add materialize:materialize ...
Read more >
How to use materializecss on meteor | by Yehuda Clinton
Unless they update the meteor package you are stuck with using npm. So here is what i did. meteor npm install materialize-css@next. meteor...
Read more >
materialize-autocomplete-meteor-autoform - npm package
Learn more about materialize-autocomplete-meteor-autoform: package health score, popularity, security, ... Install the Snyk CLI and test your project
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found