I am getting the folowing error when I am using npm start
sachin@Sachins-Mac voting_app % npm start
> [email protected] start
> npm run server
> [email protected] server
> live-server public --host=localhost --port=3000 --middleware=./disable-browser-cache.js
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module './disable-browser-cache.js'
Require stack:
- /usr/local/lib/node_modules/live-server/index.js
- /usr/local/lib/node_modules/live-server/live-server.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at /usr/local/lib/node_modules/live-server/index.js:189:10
at Array.map (<anonymous>)
at Object.LiveServer.start (/usr/local/lib/node_modules/live-server/index.js:183:13)
at Object.<anonymous> (/usr/local/lib/node_modules/live-server/live-server.js:174:12)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/lib/node_modules/live-server/index.js',
'/usr/local/lib/node_modules/live-server/live-server.js'
]
}
sacmon@Sachins-MacBook-Air voting_app % npm cache clean --force
npm WARN using --force Recommended protections disabled.
sacmon@Sachins-MacBook-Air voting_app % npm install
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: The package has been renamed to `open`
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
added 304 packages, and audited 305 packages in 23s
9 packages are looking for funding
run `npm fund` for details
4 vulnerabilities (3 moderate, 1 high)
To address issues that do not require attention, run:
npm audit fix
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
sacmon@Sachins-MacBook-Air voting_app % npm start
> [email protected] start
> npm run server
> [email protected] server
> live-server public --host=localhost --port=3000 --middleware=./disable-browser-cache.js
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module './disable-browser-cache.js'
Require stack:
- /usr/local/lib/node_modules/live-server/index.js
- /usr/local/lib/node_modules/live-server/live-server.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at /usr/local/lib/node_modules/live-server/index.js:189:10
at Array.map (<anonymous>)
at Object.LiveServer.start (/usr/local/lib/node_modules/live-server/index.js:183:13)
at Object.<anonymous> (/usr/local/lib/node_modules/live-server/live-server.js:174:12)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/lib/node_modules/live-server/index.js',
'/usr/local/lib/node_modules/live-server/live-server.js'
]
}