godaddy-wordpress / godaddy-wordpress/go
Update engines in package.json to only allow Node version 14.x.x.
- Dominant language
- PHP
- Stars
- 338
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug:**
When using node version 16 LTS, errors related to not finding correct packages are reported when running `npm install`. While updating these packages may resolve these issues, the simpler solution is to ensure the developer is using the current available
```text
➜ go git:(master) npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: go@1.6.5
npm ERR! Found: stylelint@14.5.3
npm ERR! node_modules/stylelint
npm ERR! dev stylelint@"^14.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer stylelint@"^13.13.1" from @godaddy-wordpress/stylelint-config@0.4.0
npm ERR! node_modules/@godaddy-wordpress/stylelint-config
npm ERR! dev @godaddy-wordpress/stylelint-config@"^0.4.0" from the root project
npm ERR!
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.
npm ERR!
npm ERR! See ~/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! ~/.npm/_logs/2022-09-13T20_26_09_410Z-debug-0.log
```
**Resolution:**
Update engine configuration in package.json to only allow Node 14.x.x. (until we have a fix for Node 14+)
**Priority** (select one):
- [x] Medium - Doesn't work as expected
Contributor guide
Assessment
This issue has not been assessed yet.