Yeoman - Grunt Angular Generator : Compass Serve Error - angularjs

I've been looking through error reports all day and re-reading posts on here and error reports on GitHub and not finding an answer to my problem.
Error
Running "concurrent:server" (concurrent) task
Warning: >> Local Npm module "grunt-contrib-compass" not found. Is it installed?
Warning: Task "compass:server" not found. Use --force to continue.
Aborted due to warnings.
Execution Time (2015-02-18 20:46:22 UTC)
loading tasks 3ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 75%
Total 4ms Use --force to continue.
Aborted due to warnings.
Execution Time (2015-02-18 20:46:21 UTC)
wiredep:app 137ms ▇▇▇▇ 7%
concurrent:server 1.7s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%
Total 1.8s
What I have Tried
Since the install couldn't find it to install it the first time, I reinstalled using bower install --save
After that I can't get anything to work.
Here is a copy of my Grunt.js
https://gist.github.com/ddavisgraphics/8fc9bb3958317f1fd06b
bower.json
https://gist.github.com/ddavisgraphics/d0828b048e2ac4543758

Related

Ionic build failed without specific error

After cloning my Ionic React project to my server, I ran npm install and all dependencies were installed as expected.
But when I tried to build my app running sudo ionic build --verbose, it tooks much more time than usual and ended like this :
eslint:lint-result-cache Persisting cached results: /var/www/html/ms-users-front/node_modules/.cache/.eslintcache +0ms
eslint:cli-engine Linting complete in: 4827ms +48ms
//It stay here for at least 10min before to failed while it tooks 1min in my local machine.
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.
[ERROR] An error occurred while running subprocess react-scripts.
react-scripts build exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
ionic:utils-process onBeforeExit handler: running 1 functions +1ms
ionic:utils-process processExit: exiting (exit code: 1) +44ms
My server is an ec2 instance with httpd installed and everything was working great before I tried to build a new version yesterday.
With exactly the same process, the app is building perfectly on my local machine...
I tried npm update, delete eslint cache, and build but without success.
I tried to downgrade Typescript to 4.1 because I had a warning saying that Typescript should be >4.5 and it was 4.7. But after some tests on local, it looks like this has no incidence on the build process.
I'm totally stuck and I absolutly don't know what to try.

React native app failed to build while trying to bundle release

I created an app which worked perfectly on debug but when i run
./gradlew assembleRelease
the build failed to complete.
Below is the error I receive.
at ModuleResolver.resolveDependency (C:\Users\Chifes\Desktop\app\RoGoods\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:136:15)
at DependencyGraph.resolveDependency (C:\Users\Chifes\Desktop\app\RoGoods\node_modules\metro\src\node-haste\DependencyGraph.js:231:43)
at Object.resolve (C:\Users\Chifes\Desktop\app\RoGoods\node_modules\metro\src\lib\transformHelpers.js:129:24)
at resolve (C:\Users\Chifes\Desktop\app\RoGoods\node_modules\metro\src\DeltaBundler\traverseDependencies.js:396:33)
at C:\Users\Chifes\Desktop\app\RoGoods\node_modules\metro\src\DeltaBundler\traverseDependencies.js:412:26
at Array.reduce (<anonymous>)
at resolveDependencies (C:\Users\Chifes\Desktop\app\RoGoods\node_modules\metro\src\DeltaBundler\traverseDependencies.js:411:33)
at processModule (C:\Users\Chifes\Desktop\app\RoGoods\node_modules\metro\src\DeltaBundler\traverseDependencies.js:140:31)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
info Run CLI with --verbose flag for more details.
?[0K
?[0K
?[0K
?[3A?[1m<?[0;32;1m=?[0;39;1m------------> 13% EXECUTING [2m 37s]?[m?[38D?[1B?[1m> :app:bundleReleaseJsAndAssets?[m?[31D?[1B> IDLE?[6D?[1B?[3A?[0K
?[31;1m> Task :app:bundleReleaseJsAndAssets?[0;39m?[31m FAILED?[39m
?[1B?[0K
?[0K
?[3A?[1m<?[0;31;1m=?[0;39;1m------------> 13% EXECUTING [2m 37s]?[m?[38D?[1B> IDLE?[6D?[1B> IDLE?[6D?[1B?[3A?[0K
?[31mFAILURE: ?[39m?[31mBuild failed with an exception.?[39m
?[0K
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
?[33m> ?[39mProcess 'command 'cmd'' finished with non-zero exit value 1
* Try:
?[33m> ?[39mRun with ?[1m--stacktrace?[m option to get the stack trace.
?[33m> ?[39mRun with ?[1m--info?[m or ?[1m--debug?[m option to get more log output.
?[33m> ?[39mRun with ?[1m--scan?[m to get full insights.
* Get more help at ?[1mhttps://help.gradle.org?[m
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
?[31;1mBUILD FAILED?[0;39m in 2m 41s
24 actionable tasks: 2 executed, 22 up-to-date
?[0K
?[0K
?[0K
?[3A?[1m<?[0;1m-------------> 0% WAITING?[m?[26D?[1B> IDLE?[6D?[1B> IDLE?[6D?[1B?[3A?[2K?[1B?[2K?[1B?[2K?[2A
The graddle drama has been there since I first installed the react native framework, and all solution to get it fixed has yielded nothing. However, like I said early, I'm able to get the app run on emulators; even on physical device, the debug apk worked perfectly.
Help is appreciated
try this,
Close metro server if is opend
watchman shutdown-server
for delete node-modules and re install and clear-cache
watchman watch-del-all && rm -rf node_modules && npm cache clean --force && yarn install && npm start -- --reset-cache
3.after complete close the metro server, then next run this code
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle
finally npx react-native run-android or yarn android
Did you try to re-bundle the entry file ?
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
Here's an issue that seems related to yours: React-Native assembleRelease fails for task ':app:bundleReleaseJsAndAssets'

grunt serve aborted due to warnings in yeoman mean

I was following a tutorial on mean.io, and in it, i had to install yo angular
after sometime everything was installed and finally the i had to run `grunt serve'
then this error/warning comes
mukund#mukund-ThinkPad-Edge-E431:~/MeanApp/client$ grunt serve
Running "serve" task
Running "clean:server" (clean) task
>> 0 paths cleaned.
Running "wiredep:app" (wiredep) task
Running "wiredep:test" (wiredep) task
Running "wiredep:sass" (wiredep) task
Running "concurrent:server" (concurrent) task
Warning: Running "compass:server" (compass) task
Warning: Command failed: /bin/sh -c compass --version
/bin/sh: 1: compass: not found
Use --force to continue.
Aborted due to warnings.
Execution Time (2015-07-16 10:01:13 UTC)
loading tasks 10ms ▇▇▇▇ 12%
loading grunt-contrib-compass 33ms ▇▇▇▇▇▇▇▇▇▇▇▇▇ 40%
compass:server 38ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 46%
Total 82ms Use --force to continue.
Aborted due to warnings.
Execution Time (2015-07-16 10:01:12 UTC)
loading tasks 10ms ▇ 1%
loading grunt-contrib-clean 10ms ▇ 1%
clean:server 9ms ▇ 1%
wiredep:app 185ms ▇▇▇▇▇▇▇▇ 24%
wiredep:test 10ms ▇ 1%
wiredep:sass 12ms ▇ 2%
loading grunt-concurrent 9ms ▇ 1%
concurrent:server 515ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 67%
Total 766ms
mukund#mukund-ThinkPad-Edge-E431:~/MeanApp/client$
I followed this tutorial https://www.youtube.com/watch?v=OhPFgqHz68o
Ans when i ran with this command grunt serve --force
I got the required page # htttp://localhost/9000/#/ page with without any style
You need to install compass. It is used by the SASS which is included in the angular yeoman generator.
If you have ruby installed you can do.
gem install compass
And don't use --force ever. Its not really meant for all the cases but grunt throws it for every error/warning except fatal errors.

Problems with grunt serve

I have project, but i can't run him. I use WebStorm IDE and after enter grunt serve I catch next errors:
grunt serve
Loading "connect.js" tasks...ERROR
>> SyntaxError: C:\Users\TT\Documents\ES\frontend\node_modules\grunt-contrib-connect\node_modules\connect\node_modules\type-is\node_modules\mime-types\node_modules\mime-db\db.json: Unexpect
ed end of input
Loading "cssmin.js" tasks...ERROR
>> Error: Cannot find module './source-map/source-map-generator'
Loading "jshint.js" tasks...ERROR
>> Error: Cannot find module 'jshint/src/cli'
Loading "uglify.js" tasks...ERROR
>> Error: Cannot find module 'pako/lib/zlib/messages'
Loading "cdnify.js" tasks...ERROR
>> SyntaxError: C:\Users\TT\Documents\ES\frontend\node_modules\grunt-google-cdn\node_modules\google-cdn\node_modules\cdnjs-cdn-data\external\cdnjs.json: Unexpected end of input
Loading "inline_angular_templates.js" tasks...ERROR
>> Error: Cannot find module 'domutils'
Running "serve" task
Warning: Task "connect:livereload" not found. Use --force to continue.
Aborted due to warnings.
Execution Time (2015-05-10 09:03:36 UTC)
loading tasks 18ms █████████████████████████████████████████████████████████████████████████████████████████████████████████ 56%
serve 11ms ████████████████████████████████████████████████████████████████ 34%
Total 32ms
Can you help me? How to fix it and what need install in order to this project earned?
I found a solution.
Here are the steps:
Remove nodejs and all npm's.
Install node
npm install
npm install -g bower
bower install
grunt serve
Success
um... run:
$ grunt -v
this will give you the missing (corrupted) node_modules. Sometimes things get corrupted or such.
I ran into this same problem with grunt-google-cdn and reinstalled it. with $ npm install grunt-google-cdn --save and everything went fine after that :)
reinstalling everything is generally not required.

Angular with Yeoman 1.0 and Grunt

Folks,
I am working on Win 7 professional.
Versions of various utilities on my computer are as follows:
Nodejs : v0.10.8
npm: v1.2.23
I am trying to seed the Angular application using Yeoman. I have followed the following instructions
First install yo,bower and grunt
npm install -g yo grunt-cli bower
Goto the directory where I want to create my webapp and run
c:\somefolder>yo angular
Runt the grunt server
C:>grunt server
Steps 1 and 2 above run fine but on step 3 I get the following errors
C:\somefolder>grunt -server
Running "clean:dist" (clean) task
Running "jshint:all" (jshint) task
3 files lint free.
Running "clean:server" (clean) task
Running "coffee:dist" (coffee) task
Running "coffee:test" (coffee) task
Running "compass:dist" (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.
Now I do have ruby installed and its available in PATH variable.
C:>ruby --version
ruby 2.0.0p195 (2013-05-14) [i386-mingw32]
How do I oversome this? How do i ensure that grunt server does not abort ?
Any help will be highly appreciated.
gem install compass
also here:
https://rubygems.org/gems/compass
I had the same problem as you mentioned and I noticed that Compass had to be called as compass2.0 so I symlinked compass to compass2.0 and it solved the problem.
Here's the command:
sudo ln -s /usr/bin/compass2.0 /usr/bin/compass
Hope this helps
I had this problem on OS X. Here is the series of commands I eventually used to get everything installed and working: https://gist.github.com/kristopherjohnson/f1d7e4d1c31ae3b0899e
FWIW, it seems like the missing piece for me was gem install sass. In theory, gem install compass should have installed Sass too, but explicitly installing Sass made the error disappear.

Resources