No such file or directory, chmod '/usr/local/lib/node_modules/appium/build/lib/main.js'

Getting the following trying to upgrade to appium 1.18.3 from 1.16.0 … any ideas what could be causing this issue?

npm install -g appium
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /usr/local/lib/node_modules/appium/build/lib/main.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod ‘/usr/local/lib/node_modules/appium/build/lib/main.js’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

I did a web search on the error. Looks like an NPM issue. Take a look at some of the posts and see if those solutions will work for you:

Thanks … I will take a look at some of these links, but I did do some basic research before I posted this message :blush: I get that it can’t find the file, but this is part of the appium install so I have no idea what it’s really doing or how to troubleshoot why it’s missing.

I was on node v15 but dropped back to node v13 and then the appium install completed without these errors

1 Like