npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Cannot find module ‘./access-error.js’

What I Wanted to Do

install react-native-cli

What Happened Instead

Cannot find module ‘./access-error.js’

Reproduction Steps


npm install react-native-cli


npm ERR! Cannot find module ‘./access-error.js’

npm ERR! A complete log of this run can be found in:

Platform Info

$ npm --versions
<!-- paste output here -->
{ npm: '6.7.0',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.32.0',
  node: '8.12.0',
  openssl: '1.0.2p',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.2',
  v8: '6.2.414.66',
  zlib: '1.2.11' }

$ node -p process.platform
<!-- paste output here -->

In your reproduction steps you appear to be uninstalling npm, not installing react-native-cli. What command were you running when you got the error?

Whether running NPM install XXXX or NPM uninstall, a Cannot find module’. / access-error. js’error occurs

Your npm is hosed for some reason. Please reinstall it from scratch.

What is causing this to happen. Getting the same response from a couple of my vue sites whenever I run any npom command.

use latest version of node
nvm use v10.15.1