skip to Main Content

I just cloned a React application that doesn’t have node_modules on it. I try to install with command npm install but unable to do it. Following error occurs when installing the npm.
I have also tried npm i –force.The project clone has packages which is not updated for so long.

npm ERR! In file included from ../deps/grpc/src/core/lib/channel/channel_stack.h:47:
npm ERR! In file included from ../deps/grpc/src/core/lib/iomgr/call_combiner.h:30:
npm ERR! ../deps/grpc/src/core/lib/gprpp/ref_counted.h:83:59: warning: unused parameter 'trace_flag' [-Wunused-parameter]
npm ERR!   constexpr explicit RefCount(Value init = 1, TraceFlagT* trace_flag = nullptr)
npm ERR!                                                           ^
npm ERR! ../deps/grpc/src/core/lib/gprpp/ref_counted.h:103:33: warning: unused parameter 'location' [-Wunused-parameter]
npm ERR!   void Ref(const DebugLocation& location, const char* reason, Value n = 1) {
npm ERR!                                 ^
npm ERR! ../deps/grpc/src/core/lib/gprpp/ref_counted.h:103:55: warning: unused parameter 'reason' [-Wunused-parameter]
npm ERR!   void Ref(const DebugLocation& location, const char* reason, Value n = 1) {
npm ERR!                                                       ^
npm ERR! ../deps/grpc/src/core/lib/gprpp/ref_counted.h:129:40: warning: unused parameter 'location' [-Wunused-parameter]
npm ERR!   void RefNonZero(const DebugLocation& location, const char* reason) {
npm ERR!                                        ^
npm ERR! ../deps/grpc/src/core/lib/gprpp/ref_counted.h:129:62: warning: unused parameter 'reason' [-Wunused-parameter]
npm ERR!   void RefNonZero(const DebugLocation& location, const char* reason) {
npm ERR!                                                              ^
npm ERR! ../deps/grpc/src/core/lib/gprpp/ref_counted.h:153:42: warning: unused parameter 'location' [-Wunused-parameter]
npm ERR!   bool RefIfNonZero(const DebugLocation& location, const char* reason) {
npm ERR!                                          ^
npm ERR! ../deps/grpc/src/core/lib/gprpp/ref_counted.h:153:64: warning: unused parameter 'reason' [-Wunused-parameter]
npm ERR!   bool RefIfNonZero(const DebugLocation& location, const char* reason) {
npm ERR!                                                                ^
npm ERR! ../deps/grpc/src/core/lib/gprpp/ref_counted.h:184:35: warning: unused parameter 'location' [-Wunused-parameter]
npm ERR!   bool Unref(const DebugLocation& location, const char* reason) {
npm ERR!                                   ^
npm ERR! ../deps/grpc/src/core/lib/gprpp/ref_counted.h:184:57: warning: unused parameter 'reason' [-Wunused-parameter]
npm ERR!   bool Unref(const DebugLocation& location, const char* reason) {

2

Answers


  1. Kindly include the following command

    npm cache clean --force
    

    then, Delete package-lock.json or yarn.lock: and add below cmd

    npm install
    
    Login or Signup to reply.
  2. This error occurs when building the grpc package, which has been deprecated in part because of compatibility issues with the build. You should encourage whichever package depends on it to switch to @grpc/grpc-js, the recommended replacement.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search