zvweiss
zvweiss

Reputation: 337

Fail to uninstall babel-cli with npm

I am trying to uninstall global babel-cli on my mac os x el capitan and am getting the error messages below. How can I proceed to completely remove babel-cli? Can I simply remove the table-cli folder in node_modules?

npm ERR! error in /usr/local/lib/node_modules/babel-cli: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/babel-cli/package.json'

npm ERR! extraneous: fsevents /usr/local/lib/node_modules/babel-cli/node_modules/fsevents

npm ERR! error in /usr/local/lib/node_modules/babel-cli/node_modules/fsevents: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/babel-cli/node_modules/fsevents/package.json'

npm ERR! extraneous: semver-truncate /usr/local/lib/node_modules/babel-cli/node_modules/semver-truncate

npm ERR! error in /usr/local/lib/node_modules/babel-cli/node_modules/semver-truncate: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/babel-cli/node_modules/semver-truncate/package.json'

Upvotes: 1

Views: 9273

Answers (1)

Dhruv Parekh
Dhruv Parekh

Reputation: 335

Install Latest version of babel-cli

npm install -g @babel/cli@latest

then run uninstall command

sudo npm uninstall -g @babel/cli

Upvotes: 1

Related Questions