cc.rotateBy don't move theSprite

Hi everybody,i begun to learn cocos2d-js but i have a problem, so i can’t rotate a sprite.

This is my code:

        this.flappy = new cc.Sprite(res.Flappy2_png);
        this.flappy.setPosition({ x: size.width / 2 , y: size.height / 2 });
        this.flappy.setAnchorPoint({ x: 0 , y: 0.5 })
        this.flappy.setScale(1.4);
        this.addChild(this.flappy, 1);

        var action = cc.rotateBy(4, 360);
        flappy.runAction(action.repeatForever());

What is the problem?

you can use

cc.repeatForever(action);

or

flappy.runAction(action).repeatForever()

You can use flappy.runAction(cc.repeatForever(action))