Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm ERR! arg Argument starts with non-ascii dash, this is probably invalid: [ '- g', 'appium' ]

Tags:

node.js

npm

when i try to Installing Appium Open Command Prompt/Terminal and type the following command to install Appium:

npm install –g appium

showing

npm ERR! arg Argument starts with non-ascii dash, this is probably invalid: [ '- g', 'appium' ] npm ERR! code EINVALIDTAGNAME npm ERR! Invalid tag name "-g": Tags may not have any characters that encodeURIC omponent encodes.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\vipin\AppData\Roaming\npm-cache_logs\2018-08-23T07_34_08_ 495Z-debug.log

NB:- Node.js v8.11.4 and npm 5.6.0

like image 461
ViLLaN Avatar asked Nov 29 '22 06:11

ViLLaN


1 Answers

I guess your –g is not a valid character. I also guess you are copy pasting the below command from somewhere,

npm install –g appium

Please try entering the same command manually in your CMD prompt/console as below,

npm install -g appium
like image 50
David R Avatar answered Dec 04 '22 05:12

David R