To the windows PC you can see that problem if the npm prefix is not on the PATH. Try running echo %PATH% and it should contain something similar to C:\Users\Ewan\AppData\Roaming\npm
Try to set the path first then run the command
SET PATH=C:\Windows\system32;%PATH%
npm install -g appcelerator
appc use latest
appc setup
For the Mac
For the Mac
Run the command "npm config get prefix" and/or "npm get prefix" and make sure this refers to the default value /usr/local.
If it does not refer to the default value then run this command
npm config set prefix /usr/local
After Then run the following command and let me know
sudo npm install -g appcelerator
appc use latest
appc logout -D
appc login
appc setup
Hope this helps.
npm ERR! path C:\Users\dell\AppData\Roaming\npm\node_modules\appcelerator\node_modules\.bin\supports-color
ReplyDeletenpm ERR! code EEXIST
npm ERR! Refusing to delete C:\Users\dell\AppData\Roaming\npm\node_modules\appcelerator\node_modules\.bin\supports-color: ../supports-color/cli.js symlink target is not controlled by npm C:\Users\dell\AppData\Roaming\npm\node_modules\appcelerator\node_modules\supports-color
npm ERR! File exists: C:\Users\dell\AppData\Roaming\npm\node_modules\appcelerator\node_modules\.bin\supports-color
npm ERR! Move it away, and try again.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dell\AppData\Roaming\npm-cache\_logs\2017-11-18T17_09_15_390Z-debug.log
I got error npm install -g appcelerator