I have this complaining when I run the phoenix server.
iex(1)> Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
so I go to the assets folder and run: npx browserslist@latest --update-db
then it complains for this:
Need to install the following packages:
browserslist@latest
Ok to proceed? (y) y
/Users/romenigld/.npm/_npx/072487b38308305a/node_modules/update-browserslist-db/index.js:54
throw new BrowserslistUpdateError(
^
Error [BrowserslistUpdateError]: No lockfile found. Run "npm install", "yarn install" or "pnpm install"
at detectLockfile (/Users/romenigld/.npm/_npx/072487b38308305a/node_modules/update-browserslist-db/index.js:54:9)
at updateDB (/Users/romenigld/.npm/_npx/072487b38308305a/node_modules/update-browserslist-db/index.js:258:14)
at Object.<anonymous> (/Users/romenigld/.npm/_npx/072487b38308305a/node_modules/browserslist/cli.js:42:3)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Module._load (node:internal/modules/cjs/loader:827:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
browserslist: true
}
Node.js v18.2.0
npm notice
npm notice New minor version of npm available! 8.9.0 -> 8.19.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.19.2
npm notice Run npm install -g npm@8.19.2 to update!
npm notice
I want to know if it’s ok to update the npm with the phoenix v1.6.10?