I keep encountering an issue with NPM where I always get the error message
npm ERR! Cannot find module './access-error.js'
. Can anyone provide assistance?
The problem initially arose when attempting to install vue-chartjs. Following the documentation, I executed
npm install vue-chartjs chart.js --save
, only to receive the following error:
code/premium-poker-tools [master●] » npm install vue-chartjs chart.js --save
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module './access-error.js'
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/adamzerner/.npm/_logs/2019-03-12T23_56_46_114Z-debug.log
Subsequently, I attempted installing chart.js
and vue-chartjs
separately, but encountered the same error.
After searching online for solutions, I followed recommendations such as this one:
rm -rf node_modules
npm install
Unfortunately, that did not resolve the issue.
I also tried re-installing NPM without success. Even after trying to remove NPM using sudo npm uninstall npm -g
and planning to reinstall it afterwards, the persistent error remains:
npm ERR! Cannot find module './access-error.js'
.