APTEMOH
@APTEMOH
Пишу чат ботов, телеграм ботов, ботов во вконтакте

Как установить node-gyp rebuild?

Всем добра!

[root]# npm install
npm WARN package.json shop@1.0.0 No repository field.
npm WARN package.json shop@1.0.0 No README data

> node-addon-api@3.0.0 install /home/shop/node_modules/bcrypt/node_modules/node-addon-api
> node-gyp rebuild

/usr/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: line 5: /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js: No such file or directory
npm ERR! Linux 3.10.0-1127.18.2.el7.x86_64
npm ERR! argv "/usr/local/n/versions/node/12.18.3/bin/node" "/usr/bin/npm" "install"
npm ERR! node v12.18.3
npm ERR! npm  v2.15.11
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! node-addon-api@3.0.0 install: `node-gyp rebuild`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the node-addon-api@3.0.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-addon-api package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-addon-api
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls node-addon-api
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/shop/npm-debug.log


Парни, что делать!?. Все перепробовал.

Это при вызове npm install

{
  "name": "shop",
  "version": "1.0.0",
  "description": "Shops",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node index"
  },
  "dependencies": {
    "express": "*",
    "mongoose": "*",
    "bcrypt": "*",
    "passport": "*",
    "passport-jwt": "*",
    "body-parser": "*",
    "cors": "*",
    "jsonwebtoken": "*"
  },
  "author": "Vasya",
  "license": "ISC"
}
  • Вопрос задан
  • 496 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы