Ionic setup sass [ERROR] Unable to find command: setup sass


#1

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


#2

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.


#3

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

#4

And what error message did you get?


#5

blacksnowden:~/workspace/foodporn-and-recipes (master) $ ionic setup sass
[ERROR] Unable to find command: setup sass


#6

Try the following things

  • First thing to try:
    sudo ionic setup sass

  • Delete the node_modules and reinstall with npm install


#7

Meaning I should delete the node_modules folder and reinstall it? What command should I use? please


#8

The command for reinstalling it is

npm install

Just delete the folder on your OS.


#9

@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


#10

Iknow, but this issue is uncommon in Ionic 2.
So maybe the topicstarter is using ionic 1 and placed it in the wrong section.


#11

His ionic info

@ionic/app-scripts : 3.0.1
Ionic Framework : ionic-angular 3.8.0

his using ionic 3


#12

Iknow,

Just provided all possible solutions I founded.
It’s a uncommin issue as I told before.


#13

I’m following TutsPlus - Mobile Apps With Ionic and Firebase


#14

Understand, but I guess the solution is not using the cmd which doesn’t exist :wink:
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


#15

the tutorials says after installing gulp,I should be able to set up sass using that command “ionic setup sass”


#16

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


#17


#18

@ombu thx for the screenshot but see my previous comment here above


#19

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


#20

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