0
votes

I am trying to install the appcelerator cli but keep running into an issue that I haven't been able to find a fix for.

When running the "appc setup" command I get the error "cannot find module 'C:\cyclic.js'" link to full screen capture of error

I am running windows 7 64 bit and am following the directions here https://web.appcelerator.com/product/cli

*Edit: If you are facing this same issue. Uninstall Node, and Appcelerator. Then make sure you install JDK 32 Bit (if using windows). DELETE the NPM and Appcelerator folders in your C:\Users[username]\AppData\Roaming\ directory. Then reinstall Node (I had success with 32 bit) and the Appcelerator CLI. That worked for me.

3
What version of Node.js do you have installed? - Chris Barber
I have node v0.10.37 installed - angryalbatross
@ChrisBarber see this was a bug fixed in 2.1.0 of type checker (github.com/bevry/typechecker/commit/…) but appc-platform-sdk/getmac/extract-opts relies on 2.0.8 still (current is 4.1.0). - Fokke Zandbergen
Thanks, but how do I get appcelerator to use the new version of typechecker? I did "npm install typechecker -g" and tried running the "appc setup" command again but it gave me the same error with a reference to typechecker 2.0.8 - angryalbatross
The typechecker module is located in .appcelerator\install\5.1.0\package\node_modules\typechecker, which is in your home/user directory. We have not tested typechecker v2.1.0, so your mileage may vary. - Chris Barber

3 Answers

3
votes

Hello make sure you have node.js and JDK installed and environment variable set properly. For reference http://docs.appcelerator.com/platform/latest/#!/guide/Installation_and_Configuration. Now, As you already tried "appc setup". You need to delete all cache of previous installation try and try reinstalling again. Run,

sudo rm -rf ~/.appcelerator 
sudo npm uninstall -g appcelerator 
appc use latest
appc setup
0
votes

To setup the Appcelerator CLI, install Node.js, install the appcelerator module using the NPM CLI, then run the appc setup command to download and setup the latest CLI package. You can follow the guide here. Also you can check this link, if you experience an issue installing any of the npm packages.

0
votes

If still not solved, I suggest you to start from scratch. I see you work on Windows, true?:

  • Remove install of NodeJS from "Uninstall programms" of control pannel
  • Remove install of Appcelerator from "Uninstall programms" of control pannel
  • Remove any folder from C:\Program Files or your user's folder referencing "node" "npm" or similar.
  • Go to your user's folder and remove any .app or .appcelerator folder (could be hidden, so look it well)
  • Don't forget to look in C:\Users\[username]\AppData\Roaming (probably will be hidden)

Now you have only Java JDK installed (I'm using 1.8).

Proceed with a new appcelerator.EXE install, it must detect that you don't have Node and will download by itself the proper Node version.