SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help: Chapter 2 pg 23 make test issues using Cloud 9

    So on pg 23, I ran npm install to install dependencies successfully,

    However when I ran make test... I get:

    Makefile:2: *** missing separator. Stop.

    I assume that that the code from Makefile should have a tab but not spaces.
    However, I made certain that the second line begins with a tab

    test:
    @./node_modules/.bin/mocha -u tdd
    .PHONY: test

    What do you suppose I'm doing wrong?

  2. #2
    SitePoint Member
    Join Date
    Jul 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cloud9 IDE

    Quote Originally Posted by wesamissawi View Post
    So on pg 23, I ran npm install to install dependencies successfully,

    However when I ran make test... I get:

    Makefile:2: *** missing separator. Stop.

    I assume that that the code from Makefile should have a tab but not spaces.
    However, I made certain that the second line begins with a tab

    test:
    @./node_modules/.bin/mocha -u tdd
    .PHONY: test

    What do you suppose I'm doing wrong?
    Make is complaining that the second line doesn't start with a tab. Your IDE may be saving the file using spaces as equivalent to a tab character. Either configure the IDE to use the tab character, or use a simple editor like vim and replace the leading white space on the second line with a tab.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •