Hi there,
I am getting an error message whenever I try to setup sass in ionic. Please kindly hint me on the steps to resolving this issue.
thanks,
OMBU
Hi there,
I am getting an error message whenever I try to setup sass in ionic. Please kindly hint me on the steps to resolving this issue.
thanks,
OMBU
Hi,
What is your ionic info?
Run in CLI and provide your information.
ionic info
Would be helpfull if you can tell us what the error message is.
Thanks.
cli packages: (/home/ubuntu/.nvm/versions/node/v6.11.2/lib/node_modules)
@ionic/cli-utils : 1.15.2
ionic (Ionic CLI) : 3.15.2
local packages:
@ionic/app-scripts : 3.0.1
Ionic Framework : ionic-angular 3.8.0
System:
Node : v6.11.2
npm : 3.10.10
OS : Linux 4.9
Misc:
backend : pro
And what error message did you get?
blacksnowden:~/workspace/foodporn-and-recipes (master) $ ionic setup sass
[ERROR] Unable to find command: setup sass
Try the following things
First thing to try:
sudo ionic setup sass
Delete the node_modules and reinstall with npm install
Meaning I should delete the node_modules folder and reinstall it? What command should I use? please
The command for reinstalling it is
npm install
Just delete the folder on your OS.
@ombu @wthijmen ionic setup sass
? what’s that for a cmd? never used that with Ionic >= 2, furthermore, isn’t listed as a cmd in the doc
Iknow, but this issue is uncommon in Ionic 2.
So maybe the topicstarter is using ionic 1 and placed it in the wrong section.
His ionic info
@ionic/app-scripts : 3.0.1
Ionic Framework : ionic-angular 3.8.0
his using ionic 3
Iknow,
Just provided all possible solutions I founded.
It’s a uncommin issue as I told before.
I’m following TutsPlus - Mobile Apps With Ionic and Firebase
Understand, but I guess the solution is not using the cmd which doesn’t exist
Maybe his migrating from Ionic 1 to 3 and then should know that this don’t exist in >= 2
@ombu what are you trying to achieve?
Ionic >= 2 is per default set to use sass, nothing to be set
the tutorials says after installing gulp,I should be able to set up sass using that command “ionic setup sass”
gulp?
you are following a tutorial about Ionic 1 but you installed Ionic 3
what’s your goal?
Using Ionic 1 ? Then you should begin again with a fresh project, I would say, and pay attention to your package.json
Using Ionic >= 2 ? Then find and follow another tutorial
@ombu thx for the screenshot but see my previous comment here above
I’m using Cloud 9 IDE. Please tell me how to install ionic v1 on there cause every time I install, it actually installs the latest version
Never did it, but according the doc I would try
ionic start myproject --type ionic1
https://ionicframework.com/docs/v1/overview/#starter
if it doesn’t work, plz post your question tagged with the mention ionic 1
good luck