не удалось подтолкнуть мой существующий проект к героку - PullRequest
0 голосов
/ 03 ноября 2019

Мне нужно отправить изменения, которые я внес в существующий проект, в heroku, но когда я нажимаю его, я получаю эту ошибку "ошибка: не удалось отправить некоторые ссылки на 'https://git.heroku.com/myprojectherokuname.git', пожалуйста, всех, кто может помочь мне решить эту проблемупроблема, я пытался включить версию моего узла в package.json также я установил node-pre-gyp, но ошибка все еще сохраняется, спасибо за помощь

Вот ошибка

$  git push heroku master
Enumerating objects: 3903, done.
Counting objects: 100% (3903/3903), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3750/3750), done.
Writing objects: 100% (3903/3903), 4.53 MiB | 159.00 KiB/s, done.
Total 3903 (delta 716), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Node.js app detected
remote:        
remote: -----> Creating runtime environment
remote:
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:        NODE_VERBOSE=false
remote:
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:
remote:        Resolving node version 12.x...
remote:        Downloading and installing node 12.13.0...
remote:        Using default npm version: 6.12.0
remote:        
remote: -----> Installing dependencies
remote:        Prebuild detected (node_modules already exists)
remote:        Rebuilding any native modules
remote:        
remote:        > bcrypt@3.0.6 install /tmp/build_185e8a910da730fc8b65dd3d99688b61/node_modules/bcrypt
remote:        > node-pre-gyp install --fallback-to-build
remote:
remote:        sh: 1: node-pre-gyp: Permission denied
remote:        npm ERR! code ELIFECYCLE
remote:        npm ERR! errno 126
remote:        npm ERR! bcrypt@3.0.6 install: `node-pre-gyp install --fallback-to-build`
remote:        npm ERR! Exit status 126
remote:        npm ERR!
remote:        npm ERR! Failed at the bcrypt@3.0.6 install script.
remote:        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote:        npm ERR! A complete log of this run can be found in:
remote:        npm ERR!     /tmp/npmcache.VYs7F/_logs/2019-11-03T08_40_51_424Z-debug.log
remote:
remote: -----> Build failed
remote:
remote:        We're sorry this build is failing! You can troubleshoot common issues here:
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote:        Some possible problems:
remote:
remote:        - node_modules checked into source control
remote:          https://blog.heroku.com/node-habits-2016#9-only-git-the-important-bits
remote:
remote:        - Node version not specified in package.json
remote:          https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote:        Love,
remote:        Heroku
remote:
remote:  !     Push rejected, failed to compile Node.js app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to myprojectherokuname.
remote:
To https://git.heroku.com/myprojectherokuname.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/myprojectherokuname.git'
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...