Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 한외마약
- 에스프레소샷
- 딸꾹질
- 내일부터출근
- 딸꾹질대처법
- 자연의과학
- 카페일상
- 면접준비
- 생물학습
- 의약품안전
- 탄수화물소화
- 건강정보
- 터미널사진편집
- 라떼이야기
- 코포나시럽
- 고양이
- 딸꾹질원인
- 벌루닝
- 식곤증
- 터미널사진사이즈변경
- 딸꾹질멈추는법
- 창의적인요리
- 거미
- 거미줄의비밀
- 피스타치오라떼
- 디저트아이디어
- 감기약
- 고양이귀여움
- 만두레시피
- 초코만두
Archives
- Today
- Total
SP'S SPARKING
<Solved> Heroku "npm ERR! Missing: '' from lock file" error 본문
HAPPYHACKING/ERROR SOLVED
<Solved> Heroku "npm ERR! Missing: '' from lock file" error
SPSP 2024. 7. 13. 11:16Heroku building error
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/nodejs
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): 16.x
engines.npm (package.json): unspecified (use default)
Resolving node version 16.x...
Downloading and installing node 16.16.0...
Using default npm version: 8.11.0
-----> Restoring cache
Cached directories were not restored due to a change in version of node, npm, yarn or stack
Module installation may take longer for this build
-----> Installing dependencies
Installing node modules
npm ERR! code EUSAGE
npm ERR!
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR!
npm ERR! Invalid: lock file's ajv@6.12.6 does not satisfy ajv@8.11.0
npm ERR! Missing: ajv@6.12.6 from lock file
npm ERR! Invalid: lock file's json-schema-traverse@0.4.1 does not satisfy json-schema-traverse@1.0.0
npm ERR! Missing: ajv@6.12.6 from lock file
npm ERR! Missing: react-tooltip@4.2.21 from lock file
npm ERR! Missing: uuid@7.0.3 from lock file
npm ERR! Missing: ajv@6.12.6 from lock file
npm ERR! Missing: ajv-keywords@3.5.2 from lock file
npm ERR! Missing: json-schema-traverse@0.4.1 from lock file
npm ERR! Missing: ajv@6.12.6 from lock file
npm ERR! Missing: ajv-keywords@3.5.2 from lock file
npm ERR! Missing: json-schema-traverse@0.4.1 from lock file
npm ERR! Missing: json-schema-traverse@0.4.1 from lock file
npm ERR! Missing: ajv@6.12.6 from lock file
npm ERR! Missing: ajv-keywords@3.5.2 from lock file
npm ERR! Missing: json-schema-traverse@0.4.1 from lock file
npm ERR! Missing: json-schema-traverse@0.4.1 from lock file
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [--no-audit] [--foreground-scripts] [--ignore-scripts]
npm ERR! [--script-shell <script-shell>]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.tXPks/_logs/2022-07-19T04_02_49_403Z-debug-0.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
If you're stuck, please submit a ticket so we can help:
https://help.heroku.com/
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
Solution
install missing dependencies
In my case, I installed 'ajv', 'react-tooltip', and 'uuid'
npm ajv
npm react-toolti
npm uuid
and then re-commit and push to heroku
git add .
git commit -am 'try to fix deploy error'
git push heroku main
728x90
'HAPPYHACKING > ERROR SOLVED' 카테고리의 다른 글
aws ecr get-login-password -> Unable to parse config file: 해결 (0) | 2024.07.13 |
---|---|
해결 this version of the Java Runtime only recognizes class file versions up to 52.0 (0) | 2024.07.13 |
해결 "this.custRepository" is null (0) | 2024.07.13 |
[해결] TypeError: Failed to fetch (0) | 2022.10.26 |
[SOLVED] HEROKU ERROR H10 status 503: Checking what error it is (0) | 2022.10.06 |