search

Home  >  Q&A  >  body text

node.js - The command line npm install package keeps reporting errors. Can anyone help me take a look? The configuration file has been written.


This is a screenshot of the configuration file

This is a screenshot of the error report

仅有的幸福仅有的幸福2808 days ago720

reply all(3)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 13:32:07

    Based on the answer on the first floor. First of all, why do your dependencies have two identical attributes.
    That means you are missing node-gyp, a dependency package that parses C++ code. You need to first npm install node-gyp --save-dev to install the dependencies.

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 13:32:07

    Install node-gpy, and then use node-gpy rebuild to install the dependency, thinking that this dependency is not developed with js, but uses native code developed in C++.

    reply
    0
  • PHPz

    PHPz2017-05-16 13:32:07

    Hello, can you be more specific? I don’t quite understand how I should write it

    reply
    0
  • Cancelreply