Steps:
npm i
npm start
server starts
Open http://localhost:8001/
error image 1
error image 1
OS: MacOS 12.0.1 (21A559) M1
Can you help me with this problem? Looks like some problem with css build.
Related
dev. environment
OS: Mac OS
npm version: 4.6.1
I simply init the project with command expo init my-app and start the project.
Then, I select the Run on ios server and get the error message like in the above image.
Is there anyone who can fix this error?
Thank you for your help in advance.
I fixed this error with restarting my Mac
I'm working with Cordova to build my mobile app. I'm working on a Mac machine and when I try to build and run my app on iOS device, but I'm keep getting this error.
When running:
cordova build ios
output:
** BUILD SUCCEEDED **
then I run
cordova run ios
I get the error
.../ios/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project
If I try to open the project in Xcode and run it, it successfully run on the device.
I notice that before the run failed, it output the message
ios-sim was not found. Please download, build and install 'npm install -g ios-sim'
I'm guessing Cordova thinks the device isn't plugged in since the ios-sim is a simulatur plugin for cordvoa. But I may be wrong.
Any ideas?
(This question is similar to Cordova: You may not have the required environment or OS to run this project, but this question regarding iOS there that Android)
try
npm install -g ios-sim
npm install -g ios-deploy
I suggest you read iOS Platform guide for more info.
I try to build my Cordova App' on Iphone without success. Everything is ok with Android and Windows Phone. I always have the same error when I try to build it on Iphone or iOS simulator : "Could Not find module 'npm-registry-client'".
Here's some screens:
PC:
Mac (Remote Build):
I use Visual studio 2015 on Windows PC,Angular JS framework, Npm 2.11.3 and NodeJS 0.12.7 . I've already build a blank Iphone app' with Xcode 7 on my mac. I've tried to remove the node_modules folder and reinstall Npm but it's not working...
Any suggestions?
Thanks for reading
EDIT : SOLUTION
I found the solution. 'npm-registry-client' was installed on my Windows PC but not on my Mac. In terminal,just write "npm install npm-registry-client" and everything works great!! (Emulator and device)
That error is most likely a bad install of Cordova on your Mac. Clearing out the installed Cordova version(s) from ~/.taco_home/node_modules will let the next build reinstall Cordova and should clear up the problem.
It's also possible but less likely that a Cordova install issue happened on your Windows machine instead. Reading the Output panel in VS will tell you if the error happened in the remote build log section or not. If it didn't come from the remote build, then clearing your Cordova cache and your npm cache would be the needed fix.
Hope that helps.
MacBook-Pro:myApps naveenkumar$ ionic run ios
Adding in default Ionic hooks
Running command: /Users/naveenkumar/Documents/ionic_work/myApps/hooks/after_prepare/010_add_platform_class.js /Users/naveenkumar/Documents/ionic_work/myApps
add to body class: platform-ios
Running command: /Users/naveenkumar/Documents/ionic_work/myApps/hooks/after_prepare/020_remove_sass_from_platforms.js /Users/naveenkumar/Documents/ionic_work/myApps
Running command: /Users/naveenkumar/Documents/ionic_work/myApps/platforms/ios/cordova/run
Cordova needs ios-sim version 3.0.0 or greater, you have version 1.9.0
.
ERROR running one or more of the platforms: Error: /Users/naveenkumar/Documents/ionic_work/myApps/platforms/ios/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project
MacBook-Pro:myApps naveenkumar$
Hello,
I am trying to run my project from terminal. I am getting the above error. But when I go to given iOS directory run my project from Xcode it works fine. That means, when I run from Xcode I am able to run emulator /simulator and check my output. But when I run from terminal I am not able to run my application. Could you please tell me how I will run my application from terminal?
Thanks
This is the issue:
Cordova needs ios-sim version 3.0.0 or greater, you have version 1.9.0
Here is the solution:
npm update -g ios-sim
The issue is that you do not have ios-sim installed.
From the ionic framework website, you can see the following statement:
Note: iOS development requires Mac OS X. iOS simulator through the Ionic CLI requires the ios-sim npm package, which can be installed with the command sudo npm -g install ios-sim.
All you need is to install ios-sim by running this command:
sudo npm -g install ios-sim
simctl was not found.
Check that you have Xcode 7.x installed:
xcodebuild --versionCheck that you have Xcode 7.x selected:
xcode-select --print-path
I have a problem when it comes starting with ionic in Mac. I'll explain the steps I have taken and errors I found, to see if anyone can help me.
I installed node.js from this site: nodejs.org
Thereupon I executed these commands:
$ sudo npm install -g cordova ionic cordova
$ ionic start myApp tabs
$ ionic serve
And with this last order I can see the application running. but if I try to do this:
$ sudo ionic platform add ios
I get this error:
But, These are the versions of the programs I use:
cordova - 3.6.3-0.2.13
Ionic - 1.2.7 Xcode - 6.0.1 (6A317)
XAMPP - 1.8.3-3
Someone could help me solve my problem?
Thank you in advance.
The error message says the problem, "Cordova can only run in Xcode version 4.6 or greater."
You need to install Xcode and the Xcode command line tools. Download Xcode from the AppStore, and run this command in the terminal to get the command line tools.
xcode-select --install
Also do not use sudo with the ionic commands. You'll possibly cause permission issues down the road.