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

cli
triaged
(Tbicf) #1

What I Wanted to Do

install react-native-cli

What Happened Instead

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

Reproduction Steps

Details

npm install react-native-cli

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:

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 -->
  darwin
0 Likes

(John Gee) #2

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?

1 Like

(Tbicf) #3

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

0 Likes

(Kat Marchán) #4

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

0 Likes

(Griehle) #5

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

0 Likes

(Omkar Sheral) #6

use latest version of node
nvm use v10.15.1

0 Likes