zengod
zengod

Reputation: 1174

Why is npm giving weird errors?

I'm trying to install redux using npm, but upon running the command npm install redux, I get the following error:

bash-3.2$ sudo npm install redux                                                                                    

> [email protected] install /Users/prikshetsharma/Downloads/server/node_modules/fsevents                               
> node install                                                                                                      

node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-no\
de-v72-darwin-x64.tar.gz                                                                                            
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI) (falling back to \
source compile with node-gyp)                                                                                       
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.\
1.2-node-v72-darwin-x64.tar.gz                                                                                      
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI) (falling back to \
source compile with node-gyp)                                                                                       
  SOLINK_MODULE(target) Release/.node                                                                               
  SOLINK_MODULE(target) Release/.node                                                                               
  CXX(target) Release/obj.target/fse/fsevents.o                                                                     
  CXX(target) Release/obj.target/fse/fsevents.o                                                                     
In file included from ../fsevents.cc:6:                                                                             
In file included from ../../nan/nan.h:192:                                                                          
../../nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'                              
  return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);                                          
         ~~~  ^                                                                                                     
In file included from ../fsevents.cc:6:                                                                             
In file included from ../../nan/nan.h:192:                                                                          
../../nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'                              
  return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);                                          
         ~~~  ^                                                                                                     
In file included from ../fsevents.cc:6:                                                                             
In file included from ../../nan/nan.h:197:                                                                          
In file included from ../../nan/nan_converters.h:59:                                                                
../../nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated: ToBoolean can never throw. Use Local 
      version. [-Wdeprecated-declarations]                                                                          
X(Boolean)                                                                                                          
^                                                                                                                   
../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'                                              
      val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())          \                                    
           ^                                                                                                        
<scratch space>:19:1: note: expanded from here                                                                      
ToBoolean                                                                                                           
^                                                                                                                   
/Users/prikshetsharma/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2536:3: note: 'ToBoolean' has been          
      explicitly marked deprecated hereIn file included from                                                        
../fsevents.cc:6:                                                                                                   
In file included from ../../nan/nan.h:197:                                                                          
In file included from ../../nan/nan_converters.h:59:                                                                
../../nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated: ToBoolean   V8_DEPRECATED("ToBoolean ca\
n never throw. Use Local version.",can                                                                              
   ^never                                                                                                           
 throw. Use Local                                                                                                   
      version. [-Wdeprecated-declarations]                                                                          
X(Boolean)                                                                                                          
^                                                                                                                   
../../nan/nan_converters_43_inl.h:18/Users/prikshetsharma/Library/Caches/node-gyp/12.10.0/include/node/v8config.h::\
12311:: 29note::  expandednote : fromexpanded  macrofrom  'X'macro                                                  

      'V8_DEPRECATED'                                                                                               
  declarator __attribute__((deprecated(message)))                                                                   
                            ^                                                                                       
      val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())          \                                    
           ^                                                                                                        
<scratch space>:19:1: note: expanded from here                                                                      
ToBoolean                                                                                                           
^                                                                                                                   
/Users/prikshetsharma/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2536:3: note: 'ToBoolean' has been          
      explicitly marked deprecated here                                                                             
  V8_DEPRECATED("ToBoolean can never throw. Use Local version.",In file included from                               
  ^                                                                                                                 
../fsevents.cc:6:                                                                                                   
In file included from ../../nan/nan.h:197:                                                                          
In file included from ../../nan/nan_converters.h:59:                                                                
../../nan/nan_converters_43_inl.h:40:1: warning: /Users/prikshetsharma/Library/Caches/node-gyp/12.10.0/include/node\
/v8config.h:'BooleanValue'311 :is29 :deprecated:  noteBooleanValue:  expandedcan  fromnever  macrothrow.            
       Use'V8_DEPRECATED'                                                                                           

      Isolate version. [-Wdeprecated-declarations]                                                                  
  declarator __attribute__((deprecated(message)))                                                                   
                            ^                                                                                       
X(bool, Boolean)                                                                                                    
^                                                                                                                   
../../nan/nan_converters_43_inl.h:37:15: note: expanded from macro 'X'                                              
  return val->NAME ## Value(isolate->GetCurrentContext());                     \                                    
              ^                                                                                                     
<scratch space>:26:1: note: expanded from here                                                                      
BooleanValue                                                                                                        
^                                                                                                                   
/Users/prikshetsharma/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2574:3: note: 'BooleanValue' has been       
      explicitly marked deprecated here                                                                             
  V8_DEPRECATED("BooleanValue can never throw. Use Isolate version.",                                               
  ^                                                                                                                 
/Users/prikshetsharma/Library/Caches/node-gyp/12.10.0/include/node/v8config.hIn file included from :../fsevents.cc3\
11::629:                                                                                                            
: In file included from note../../nan/nan.h: :197expanded:                                                          
 In file included from from../../nan/nan_converters.h: 59macro:                                                     

../../nan/nan_converters_43_inl.h      :'V8_DEPRECATED'40                                                           
:1: warning: 'BooleanValue' is deprecated: BooleanValue can never throw. Use                                        
      Isolate version.   declarator __attribute__((deprecated(message)))[-Wdeprecated-declarations]                 

                            ^                                                                                       
X(bool, Boolean)                                                                                                    
^                                                                                                                   

The real output is actually ten times longer, but I think you get the picture. How to fix this? Node version: 12.10.0. Npm version: 6.11.3.

Upvotes: 0

Views: 2933

Answers (2)

Aditya Patil
Aditya Patil

Reputation: 209

Try this it should work.

npm install [email protected]

I have tried this and using this versions node -v => v12.18.0 and npm -v => 6.14.9

Upvotes: 2

storenth
storenth

Reputation: 1235

I got same issue, and the fix is the right node version to use with. First time I get gyp ERR! node -v v13.3.0, then fix with nvm install v8.9.4 So I suggest to use node under nvm and try older node version!

Upvotes: 1

Related Questions