When I create ionic project with below command, I got a error
Command : ionic start --v2 myApp tabs
Error: Cannot find module 'C:\Users\İbrahim Aker\AppData\Roaming\npm\ode_modules\ionic\bin\ionic'
I noticed that try to find path "ode_modules", but ionic path is "node_modules"
How can I solve this problem
thank you
Your windows user name causing this problem because it has non-English character('İ'). You can solve this with creating new windows user.
For example :Ibrahim
'C:\Users\Ibrahim Aker\AppData\Roaming\npm\node_modules\ionic\bin\ionic'
Related
May I ask your help about this error
It's happen when I'm trying for the first time running my flutter web which using flutter run -d chrome
Launching lib\main.dart on Chrome in debug mode...
Syncing files to device Chrome...
25,220ms (!)
GET /dwds/src/injected/client.js
Error thrown by handler.
FileSystemException: Cannot open file, path = 'C:\Users\Acer\flutter\.pub-cache\hosted\pub.dartlang.org\dwds-2.0.1\lib\src\injected\client.js' (OS Error: The system cannot find the path specified.
, errno = 3)
dart:isolate _RawReceivePortImpl._handleMessage
And if I trying run using
flutter run -d web
It's doesn't thrown any error but on the website it goes blank white nothing shown up.
Anyway thanks for your help
adding the following in the pubspec.yaml worked for me. I am using beta channel.
dependencies:
dwds: ^16.0.1
then run command:
flutter update-packages
I was also facing the same issue, I don't know the exact root cause of the problem but I have a hack to make it work.
I was facing the issue after I deleted .pub-cache folder, so from my recycler bin I picked dwds-2.0.1 folder and reverted back. This hack working
add dwds package in your dependencies and run flutter update-packages. It will work :)
I change my ionic app name to 2cheap. its return following error. How to resolve it.
You can't solve this, it is a restriction for Cordova projects...
Only thing you could do is give it a name starting with a letter and rename the project in both the android and ios projects.
I'm installing Ionic with the aim of learning this Framework, but I'm not getting results when I give the command ionic serve .... I get the following error: [ERROR] Sorry! ionic serve can only be run in an Ionic project directory.
error
While I create my project files, I do not know if these are well named .... I attach a photo of these
explorer
I have installed Node, Apache Cordova and Ionic ... I do not know what's happening ... any help for me?
Do that inside primerapp folder
I am following the Ionic Tutorial from their docs and when I run:
ionic start MyIonic2Project tutorial --v2
I get no errors. But when I try to run it using
ionic serve
I get the following error:
I have done nothing with the code. Is there something wrong with installation of ionic?
Firstly you have to move into MyIonic2Project folder.Then run as shown below.
c:\MyIonic2Project> ionic serve
l am trying to run ionic on my mac. l am currently on EL Capitan. l have installed the ionic CLI,npm and ionic itself by following the instructions on the ionic home page. l get the response -bash: ionic: command not found everytime l run ionic start sample or ionic start sample tabs .
Did you used this in the command-line-interface:
sudo npm install -g cordova ionic
Maybe something went wrong through the installation
I added 'C:\Users\usr\AppData\Roaming\npm' in my path and its works very well
l resolved this issue weeks after posting this in 2015, thought l post an answer to anyone who might need it.
It was all to do the path for the node modules. So to resolve it l added the node module path to mt profile and it worked.
Happy coding.
check path variable in your environment variable. you must add the address of npm in path variable you can find it in c:/user/xxxx/appdata/roaming/npm.