Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gruntfile.js and packages.json because of changes to grunt-sass. #1687

Conversation

PeterSweetAndSour
Copy link

When attempting to run grunt after installation according to the instructions, the terminal shows:
Running "sass:dist" (sass) task
Fatal error: The implementation option must be passed to the Sass task
That led me to them-es/starter-bootstrap#1 and then https://www.npmjs.com/package/grunt-sass/v/3.0.0

Adding just the options block in the gruntfile but failing to update packages leads to this error in the terminal:
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'node-sass'
so I first added
"node-sass": "*"
but after running
npm install --save-dev node-sass grunt-sass
the line was changed to
"node-sass": "^4.13.1"

Initially I had an error related to the jekyllConfig section of gruntfile.js indicating that redcarpet was not installed so I changed line 24 to
"markdown: kramdown \r\n"+
but now it seems to work just fine with the original setting.

When attempting to run grunt after installation according to the instructions, the terminal shows:
    Running "sass:dist" (sass) task
    Fatal error: The implementation option must be passed to the Sass task
That led me to them-es/starter-bootstrap#1 and then https://www.npmjs.com/package/grunt-sass/v/3.0.0

Adding just the options block in the gruntfile but failing to update packages leads to this error in the terminal:
    Loading "Gruntfile.js" tasks...ERROR
    >> Error: Cannot find module 'node-sass'
so I first added
   "node-sass": "*"
but after running
    npm install --save-dev node-sass grunt-sass
the line was changed to
    "node-sass": "^4.13.1"

Initially I had an error related to the jekyllConfig section of gruntfile.js indicating that redcarpet was not installed so I changed line 24 to
    "markdown: kramdown \r\n"+
but now it seems to work just fine with the original setting.
Running 'grunt' in the terminal gives this error:

    Markdown processor: "redcarpet" is not a valid Markdown processor.
        Available processors are: kramdown
    Conversion error: Jekyll::Converters::Markdown encountered an error while converting 'documentation/api.md':
        Invalid Markdown processor given: redcarpet
        ERROR: YOUR SITE COULD NOT BE BUILT:

Doing 'gem list' shows that redcarpet is not installed and though this could probably made to work if it is separately installed, it seems easier to change the markdown processor to kramdown which is the default.
@dimsemenov
Copy link
Owner

Closing, as outdated pull request due to version 5.0 release.

@dimsemenov dimsemenov closed this Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants