$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [dependency]
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! node_modules/[command]
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
To fix this, use the lower version of npm or node.
$ node --version
v17.8.0
$ npm --version
8.5.5
$ nvm use 16
Now using node v16.14.2 (npm v8.5.0)
$ nvm use 14
N/A: version "14 -> N/A" is not yet installed.
You need to run "nvm install 14" to install it before using it.
$ nvm install 14
Downloading and installing node v14.19.1...
Downloading https://nodejs.org/dist/v14.19.1/node-v14.19.1-linux-x64.tar.xz...
######################################################################################################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v14.19.1 (npm v6.14.16)
$ npm install
SUCCEED!!
Since my code used AWS Lambda which was available for node 14, it worked in the lower version.
'Bug > Node' 카테고리의 다른 글
[Vue.js] Error in Vue.js hot reloading with WSL2 (0) | 2022.05.12 |
---|