How can we build an ionic project in Ubuntu 18.04, which is developed and built in windows environment? - ionic-framework

i am trying to build an ionic project in ubuntu 18.04. but I am getting an error like it cannot build in ubuntu environment.
I have rebuild node-sass folder as well. After that I am getting error as gulf.file cannot find.
here is the error i am getting

copy files from your old project folder except node_module
then paste them in the new path
run
if cordova not installed
npm install -g cordova
then run
npm install -g ionic
npm install
if any error shows
run
npm audit fix

Related

Ionic and cordova(Latest versions) installation problems

I'm trying to install the Ionic framework with npm. It successfully installed. But when I try installing new versions of Ionic and Cordova, I was unable to install and Error messages are coming frequently in the ubuntu terminal.
I had a same problem but i recovered it using following command:
npm install -g cordova ionic --verbos
if its not work then you need to try yarn. you can download and install form https://yarnpkg.com/lang/en/docs/install/ this website
After install, run the following command
yarn add global cordova
yarn add global ionic

Ionic CLI not updating on MAC

I have been trying to update Ionic CLI, I can use the install from NPM and it says it is installing version 2, but if I run Ionic --v it returns 1.7.15. I am guessing it is installed locally, but not sure how I can remove it to let it use the updated global one. I have tried manually deleting from the user node_modules and that. Any ideas?
You should just be able to run npm install -g ionic#2.2.2 in terminal and it will update the global version of ionic.
If that doesn't work then just remove ionic (npm uninstall -g ionic) and install again using the command above.

npm uninstall not working for ionic

I have ionic cli installed in my PC
Windows 10 OS
as per new ionic release the beta has to be uninstalled and new ionic need to be installed.
https://github.com/driftyco/ionic/releases
But when I try to uninstall ionic using npm
npm uninstall -g ionic
also
npm uninstall -g ionic#2.0.0-beta.25
after uninstall
I did
npm list -g
the ionic was not shown in the output.
But upon everything when I type
ionic -v or ionic --version
I still see ionic 2.0.0-beta25 in my console.
Tried this multiple times and also there was a solution in forum by one who says there might be old entry. But I am not sure from where this is getting picked.
Is there a way to find out where npm is picking this or where it is installed?
I cant find it under my npm directory.
C:\Users\Bala\AppData\Roaming\npm\node_modules
Output of Where ionic
C:\>where ionic
C:\Program Files (x86)\nodejs\ionic
C:\Program Files (x86)\nodejs\ionic.cmd

Can't install Ionic

I can't install ionic on window. I see this error message.
npm ERR! tar.unpack untar error C:\Users\EUNOVA~2\AppData\Local\Temp\npm-4944-a5
4758ba\registry.npmjs.org\cordova-js-\cordova-js-4.0.0.tgz
npm ERR! tar.unpack untar error C:\Users\EUNOVA~2\AppData\Local\Temp\npm-4944-a5
4758ba\registry.npmjs.org\npm-\npm-1.3.4.tgz
How can I fix it?
Solution worked for me
Follow the steps
Install all necessary dependencies.
http://ionicframework.com/docs/guide/installation.html
Uninstall node.js from PC if already installed
Restart PC
Download and Install node.js (MSI Installer) from http://nodejs.org/dist/v0.10.38/ for x86 or http://nodejs.org/dist/v0.10.38/x64/ for x64
Right-click Command prompt, and then click Run as administrator.
Install Cordova using the command: npm install -g cordova
Finally install Ionic Framework using the command: npm install -g ionic
Reinstall node.js http://nodejs.org/dist/v0.12.7/ for x86 or http://nodejs.org/dist/v0.12.7/x64/ for x64
Done!

Install ionic framework.

I have installed the module with node version v0.10.22
sudo npm install -g ionic
But know when I am trying to start an new application I am getting a
-bash command not found
which ionic
gives me nothing, do I have to add the path to on the $PATH variable ?
How did you installed npm? If you used homebrew then npm won't put npm files accessible by users.
Add export PATH=/usr/local/share/npm/bin:$PATH to your .bashrc/.bash_profile/.zshrc file and it should work fine.
Also refer this: Bower: "command not found" after installation