I have installed cordova with npm install -g cordova and NPM path is C:\Users{yourName}\AppData\Roaming\npm but I want to install everything (specially cordova) on some other drive rather than 'C'. Not sure how it is possible.
I did this by installing cordova without '-g' as it does global installation.
To install cordova to desired location just change the directory to that location in command prompt and run below command
npm install cordova
and to check installation
cordova --version.
Related
I have created new project using Nuxt. And as I was trying the command:
npm install --save-dev sass sass-loader#10 fibers
It have generated a lot of errors but the one line of error that I understand is this:
npm ERR! C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\PC-Admin\Development\vue\bulma-project\node_modules\fibers\build\fibers.vcxproj]
I tried to locate my sdk on my pc and it showed like this:
How can I fix this error?
I have fixed my problem by downgrading my node version to node v.12. I referred to this npm err! fibers#4.0.2 install
I think the main problem is with the installation with fibers on the latest version of node, so what I did based on what I found was to downgrade my node.
I'm trying to log into appcelerator studio, but nothing works, when I try it through terminal with appc login, I get this error: bash: appc: command not found.
Make sure you install the CLI tools globally with npm install -g alloy appcelerator titanium. After that the appc command should be available in your CLI. Then you can run appc login. For a more details install instruction have a look at: How to install Axway Appcelerator in combination with Atom
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.
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
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.
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.
I've bought my first ever MacBook having never used a Mac before and need to know how to set up pretty much the same tools or learn whatever the Mac version of these tools are, heres a guide I wrote for getting started with Phonegap on Windows, if I follow it as close as I can, will everything work?
• Download/ Install Node.JS
• Download/ Install GIT for windows
• Download/ Install Phonegap by opening NODE.JS command line and
typing: npm install -g phonegap
• Download/ Install Apache 2.4
• Download/ Install Apache Ant
• Add Variable name: ANT_HOME with filepath to User/ System variables
(e.g. C:\apache-ant-1.9.4 )
• Add %ANT_HOME%/bin to PATH under user variables
• Download/ Install JRE ( select applicable version number (if in
doubt then most recent))
• Download/ Install JDK (Select applicable version number (if in doubt
then most recent))
• Add Variable name: JAVA_HOME with filepath to User/ System variables
(e.g. C:\Program Files\Java\jdk1.7.0_60 )
• Add %JAVA_HOME%/bin to PATH under user variables
• Download / Extract Android SDK ( select "download for other
platforms" and select version to avoid downloading their bundle)
• Add Android SDK Tools folder eg: C:\android-sdk-windows\tools to the
PATH variable
• Add Android SDK Platform tools eg:
C:\android-sdk-windows\platform-tools to the PATH variable
Thankyou in advance for your help!
Lewis
The mac is build on a unix platform.
This means it comes with a lot of tools that are Linux like.
To install application on the mac you can use brew ( http://www.brew.sh ). Brew is a package management system similar to the ones from linux world (yum for RedHat or apt-get for Ubuntu).
To install brew run this command in the Terminal:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
After you have brew installed on your machine, you can add your packages with:
brew install [packagename]
Your installation flow would look like this:
brew install node
brew install git
npm install -g phonegap
For apache and ant check the existing answers on stackoverflow.
To add environment variable on mac use the Terminal and edit your “.profile” or “.bash_profile”. There are detailed answear on stackoverflow regarding this subject.
Java will need to be installed from the Oracle website (download the .dmg file and execute it)
brew install android-sdk
can anyone tell me the proper way to uninstall phonegap 2.9.1 from windows 7. can't find it in any of my uninstaller program. i don't think just deleting the folder is the proper way.
Thanks
Assuming you installed with node.js, then you simply go
npm uninstall phonegap
to remove the local package or
npm uninstall --global phonegap
to remove the global install