FoundationPress icon indicating copy to clipboard operation
FoundationPress copied to clipboard

Cannot find module './access-error.js'

Open nitin20212 opened this issue 6 years ago • 2 comments

Getting error while installing npm

verbose stack Error: Cannot find module './access-error.js' 4 verbose stack at Function.Module._resolveFilename (module.js:547:15) 4 verbose stack at Function.Module._load (module.js:474:25) 4 verbose stack at Module.require (module.js:596:17) 4 verbose stack at require (internal/module.js:11:18) 4 verbose stack at Object. (/usr/local/lib/node_modules/npm/lib/install/exists.js:4:19) 4 verbose stack at Module._compile (module.js:652:30) 4 verbose stack at Object.Module._extensions..js (module.js:663:10) 4 verbose stack at Module.load (module.js:565:32) 4 verbose stack at tryModuleLoad (module.js:505:12) 4 verbose stack at Function.Module._load (module.js:497:3) 4 verbose stack at Module.require (module.js:596:17) 4 verbose stack at require (internal/module.js:11:18) 4 verbose stack at Object. (/usr/local/lib/node_modules/npm/lib/install/check-permissions.js:8:14) 4 verbose stack at Module._compile (module.js:652:30) 4 verbose stack at Object.Module._extensions..js (module.js:663:10) 4 verbose stack at Module.load (module.js:565:32)

nitin20212 avatar Mar 15 '19 22:03 nitin20212

Could you please post the following information:

  • OS & version:
  • Node version (node -v) [Node v6+ is required] :
  • npm Version (npm -v)
  • FoundationPress version (see line 3 in package.json):
  • Foundation version (found in node_modules/foundation-sites/package.json) :

This does not look like an error with FoundationPress. I guess it's something with npm. Maybe try to reinstall npm.

https://npm.community/t/unable-to-install-npm-packages-after-npm-update/4856

derweili avatar Mar 15 '19 22:03 derweili

i did nvm use 11 and then npm install. it worked.

ashokprogress avatar May 20 '19 07:05 ashokprogress