Grunt Sass Task Error when Running "Grunt Compile"? - sass

When running "Grunt Compile" I get the below error related to Sass Task? I have checked that all files exist and that there are no syntax errors. See Gist link below for "gruntfile.js". This is for a pre-existing grunt project on Windows 7 and all that was required was that I installed sass, npm, grunt & setup environment variables. And it's not working.
Running "sass:dev" (sass) task
Warning: source string:1: error: invalid top-level expression
Use --force to continue.
Aborted due to warnings.
https://gist.github.com/Cypher278999/6e2703dc3391e4509098

Related

Chocolatey failing to install Sass in cmd

I tried installing Sass using Chocolatey in both the CMD and Powershell and this is the error I'm getting, How do I solve it?
C:\WINDOWS\system32>choco install sass
Chocolatey v0.12.1
Installing the following packages:
sass
By installing, you accept licenses for the packages.
Progress: Downloading sass 1.49.9... 100%
sass v1.49.9 [Approved]
sass package files install completed. Performing other installation steps.
The package sass wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): Y
Fetching Dart dependencies...
ERROR: The term 'pub' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The install of sass was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\sass\tools\chocolateyInstall.ps1'.
See log for details.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
sass (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\sass\tools\chocolateyInstall.ps1'.
See log for details.

Error on #import "bootstrap-sass/assets/stylesheets/bootstrap/variables"

We use microsoft VSTS build and release pipeline. Everything was working fine until 2 days ago. We faced an interesting issue when running a gulp script to compile SASS using Yarn.
I kept on failing with this error:
> 2018-03-14T05:23:42.3498877Z >> #import
> "bootstrap-sass/assets/stylesheets/bootstrap/variables";
> 2018-03-14T05:23:42.3498877Z ^ 2018-03-14T05:23:42.3498877Z
> 2018-03-14T05:23:42.3498877Z at options.error
> (F:\agentA\_work\1\s\prototype\node_modules\node-sass\lib\index.js:291:26)
As soon as we ran these commands below on Build server it started working:
npm i -g yarn
npm i -g gulp
Questions:
Any idea why above command would fix the problem?
Before the fix we looked whether bootstrap and all files existed on build server. They definitely were there. And still build failed until we ran above command. I wonder why it failed.
Thanks

Node js: not found ruby.exe

iam new to node js, ruby grunt etc. And i want to use premailer for my e-mail templates. So i installed node js, ruby, grunt and premailer but when i try to grunt it i get this error message:
C:\Users\Noeel\Desktop\mail>grunt
Running "premailer:main" (premailer) task
Fatal error: Error: not found: ruby.exe
http://i.stack.imgur.com/JNOXc.jpg
I followed several guides and searched the problem on google but no luck.
This error seems to be related to premailer required dependencie.
Download Ruby
Install
Restart your command line
Have fun!

My compass has stopped working together with Grunt

Im using sass and compass together with Grunt to build my project. But suddenly compass has just stopped working. When i run my Grunt i get this error:
"Running "sass:dist" (sass) task
ERROR: Cannot load compass.
Warning: Exited with error code 1 Use --force to continue."
The versions are:
compass (0.12.4)
sass (3.2.18)
I have googled ant tried a lot of stuff but none seems to work for me.
Any suggestions?

"invalid option" when running Yeoman Webapp + Compass

I'm new to Yeoman and I`m trying to setup a yeoman bootstrap sass/compass enviroment.
I've followed this link for the creation of the Yeoman Webapp.
And this link to the compass recipe.
When I run grunt serve I get the following:
Running tasks: compass:server
Running "compass:server" (compass) task
Verifying property compass.server exists in config...OK
File: [no files]
Options: sassDir="app/styles", cssDir=".tmp/styles", imagesDir="app/images", javascriptsDir="app/scripts", fontsDir="app/styles/fonts", generatedImagesDir=".tmp/images/generated", importPath="bower_components", httpImagesPath="../images", httpGeneratedImagesPath="../images/generated", httpFontsPath="fonts", relativeAssets=false, assetCacheBuster=false, debugInfo
Error: invalid option: --import-path=bower_components
Usage: compass compile [path/to/project] [path/to/project/src/file.sass ...] [options]
I have searched around all over to fix the issue with no success any help would be deeply appreciated.
Solved by upgrading Compass...

Resources