When running "Grunt" in the terminal errors in local - gruntjs

When running grunt in my terminal I keep having the issue of the below.
Loading "Gruntfile.js" tasks...ERROR
Error: Unable to read "environments-local.yaml" file (Error code: ENOENT).
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
I have run npm install and sudo npm install with no success.
Has anyone else had the same problem? And if so how did you overcome it?
Please let me know if you need to know any more information
Many thanks

I had to set up a local environment and it works fine

Related

>> Error: Cannot find module 'load-grunt-config' how can I get grunt to work?

I've cloned a repo that I'm supposed to be working on.
I then tried running the following commands:
npm install
bower install
As well as: cd to my folder and npm install grunt --save-dev
However, when I run grunt I get the following error:
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'load-grunt-config'
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
Execution Time (2018-05-07 11:23:14 UTC+10)
loading tasks 6ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 86%
Total 7ms
This is my Gruntfile.js:
module.exports = function(grunt) {
require('time-grunt')(grunt);
require('load-grunt-config')(grunt, {
jitGrunt: true
});
};
How can I fix this? I am really stuck.
it seems like you don't have 'load-grunt-config' installed (at least I get the exact same error by removing the folder from my node_modules).
run npm install load-grunt-config and/or fix your package.json file by adding "load-grunt-config": "^0.19.2"to the related dependencies.

Grunt release : Warning: Task "release" not found and it shows "aborted due to warnings"

Grunt release : Warning: Task "release" not found and shows aborted due to warnings.
But it shows hint like "Use --force to continue". If i use "--force" to the command it is working fine. What's happening when i use --force before and after.
Double check that all the dependencies for your project are properly installed by running npm install. If there's errors, update your question with that information.
If that does not resolve the problem, check package.json for the grunt-release plugin. It will be found under dependencies or devDependencies. If it's missing from package.json, run npm install grunt-release --save-dev to install the plugin and save it to your project dependencies.
If any errors occur while attempting to resolve your problem this way, update your question and include that information.

running grunt task as configuration in webstorm

In webstorm, running grunt serve from the terminal works flawlessly and presents me with a webpage. However, when I make a configuration and run that, there's an error concerning SASS to CSS compilation:
Running "concurrent:server" (concurrent) task
Warning: Running "compass:server" (compass) task
Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Use --force to continue.
Aborted due to warnings.
which I do not understand, as I'm using the same settings (described here)
Seems WebStorm doesn't see your terminal environment when being started from shortcut. Pleasee try editing the launcher as suggested in https://devnet.jetbrains.com/message/5513463#5513463 - does it help?

Graphicsmagick not working in cmd, but works in webstorm

I have an interesting issue with Graphicsmagick. I've installed grunt-responsive-images-converter, and successfully configure it. The problem is that it works only when I run it form Webstorm IDE, but when I run it in cmd I get this error:
Running "responsive_images:resize" (responsive_images) task
spawn ENOENT
Warning:
Please ensure GraphicsMagick is installed correctly.
brew install graphicsmagick or see http://www.graphicsmagick.org/download.html for more > > details.
Alternatively, set options.engine to 'im' to use ImageMagick.
Use --force to continue.
I've installed GraphicsMagick-1.3.19-Q16-win64-dll.exe with checked checkbox:"Update executable search path".
I don't know what can I do more, so please help :)

I'm running into this issue when trying to grunt serve. Could anyone help me solve this issue

roys-mbp:gucci Filthy$ grunt serve
Running "serve" task
Running "clean:server" (clean) task
Running "concurrent:server" (concurrent) task
Warning: Running "sass:server" (sass) task
Warning: /Users/Filthy/Documents/gucci/app/styles/main.scss:4: error: file to import not found or unreadable: '../../bower_components/bootstrap-sass-official/vendor/assets/stylesheets/bootstrap.scss'
Use --force to continue.
Aborted due to warnings.
Execution Time (2014-05-07 07:06:54 UTC)
loading tasks 3ms ▇▇▇▇▇▇▇▇▇▇▇▇▇ 27%
sass:server 7ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 64%
Total 11ms Use --force to continue.
Aborted due to warnings.
Try running 'bower install' to install your dependencies.
I had the same problem, the path to bootstrap.scss was wrong.
Did you use the webapp generator?
Change the line 4 in main.scss from
'../../bower_components/bootstrap-sass-official/vendor/assets/stylesheets/bootstrap.scss'
to
'../bower_components/bootstrap-sass-official/vendor/assets/stylesheets/bootstrap.scss'
or to whatever the path to the bootstrap.scss may be.
I had the same problem. I was thinking npm and bower dependencies was installed, but the installation didn't end.
To fix it:
npm install
bower install
That fixed my problem.
There is a problem in your sass file, use this source
#import "bootstrap-sass-official/assets/stylesheets/_bootstrap.scss";
Open cmd promt
go to the project folder
type -> bower install and enter
it will install bower components
and show option to which version need to be installed
then the problem solved
Its working fine for me try it.....

Resources