Grunt build is not working after NPM Update and Clean - node.js

I have my website on AngularJs and it was working just fine before we updated the NPM clean. Whenever we tried to build the project with 'Grunt Build' it gets stuck after processing the images part.
Reinstalled NPM previous version
Resetup complete environment
Deleted cache and everything
$ grunt build -v
Initializing
Command-line options: --verbose, --gruntfile=C:\Users\YouStable\Documents\newyst\Gruntfile.js
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
=============================================================================
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "grunt-autoprefixer" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-autoprefixer\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-autoprefixer\package.json...OK
Loading "autoprefixer.js" tasks...OK
+ autoprefixer
Registering "grunt-filerev-replace" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-filerev-replace\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-filerev-replace\package.json...OK
Loading "filerev_replace.js" tasks...OK
+ filerev_replace
Registering "grunt-concurrent" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-concurrent\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-concurrent\package.json...OK
Loading "concurrent.js" tasks...OK
+ concurrent
Registering "grunt-contrib-clean" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-clean\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-clean\package.json...OK
Loading "clean.js" tasks...OK
+ clean
Registering "grunt-contrib-concat" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-concat\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-concat\package.json...OK
Loading "concat.js" tasks...OK
+ concat
Registering "grunt-contrib-connect" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-connect\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-connect\package.json...OK
Loading "connect.js" tasks...OK
+ connect
Registering "grunt-contrib-copy" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-copy\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-copy\package.json...OK
Loading "copy.js" tasks...OK
+ copy
Registering "grunt-contrib-cssmin" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-cssmin\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-cssmin\package.json...OK
Loading "cssmin.js" tasks...OK
+ cssmin
Registering "grunt-contrib-htmlmin" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-htmlmin\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-htmlmin\package.json...OK
Loading "htmlmin.js" tasks...OK
+ htmlmin
Registering "grunt-contrib-imagemin" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-imagemin\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-imagemin\package.json...OK
Loading "imagemin.js" tasks...OK
+ imagemin
Registering "grunt-contrib-jshint" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-jshint\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-jshint\package.json...OK
Loading "jshint.js" tasks...OK
+ jshint
Registering "grunt-contrib-uglify" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-uglify\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-uglify\package.json...OK
Loading "uglify.js" tasks...OK
+ uglify
Registering "grunt-contrib-watch" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-watch\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-watch\package.json...OK
Loading "watch.js" tasks...OK
+ watch
Registering "grunt-filerev" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-filerev\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-filerev\package.json...OK
Loading "filerev.js" tasks...OK
+ filerev
Registering "grunt-google-cdn" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-google-cdn\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-google-cdn\package.json...OK
Loading "cdnify.js" tasks...OK
+ cdnify
Registering "grunt-newer" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-newer\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-newer\package.json...OK
Loading "newer.js" tasks...OK
+ any-newer, newer, newer-clean, newer-postrun
Registering "grunt-ng-annotate" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-ng-annotate\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-ng-annotate\package.json...OK
Loading "ng-annotate.js" tasks...OK
+ ngAnnotate
Registering "grunt-svgmin" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-svgmin\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-svgmin\package.json...OK
Loading "svgmin.js" tasks...OK
+ svgmin
Registering "grunt-usemin" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-usemin\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-usemin\package.json...OK
Loading "usemin.js" tasks...OK
+ usemin, useminPrepare
Registering "grunt-wiredep" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-wiredep\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-wiredep\package.json...OK
Loading "wiredep.js" tasks...OK
+ wiredep
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
+ build, default, serve, server, test
Running tasks: svgmin
Running "svgmin" task
Running "svgmin:dist" (svgmin) task
Verifying property svgmin.dist exists in config...OK
Files: app/images/1-high.svg -> dist/images/1-high.svg
Files: app/images/9-high.svg -> dist/images/9-high.svg
Files: app/images/dreamhost.svg -> dist/images/dreamhost.svg
Files: app/images/icons/cd-arrow.svg -> dist/images/icons/cd-arrow.svg
Files: app/images/icons/cloud.svg -> dist/images/icons/cloud.svg
Files: app/images/icons/contract.svg -> dist/images/icons/contract.svg
Files: app/images/icons/curriculum.svg -> dist/images/icons/curriculum.svg
Files: app/images/icons/http.svg -> dist/images/icons/http.svg
Files: app/images/icons/piggy-bank.svg -> dist/images/icons/piggy-bank.svg
Files: app/images/icons/sms_interact.svg -> dist/images/icons/sms_interact.svg
Files: app/images/icons/speaker.svg -> dist/images/icons/speaker.svg
Files: app/images/icons/website.svg -> dist/images/icons/website.svg
Files: app/images/lowa.svg -> dist/images/lowa.svg
Files: app/images/svgs/boy.svg -> dist/images/svgs/boy.svg
Files: app/images/svgs/call.svg -> dist/images/svgs/call.svg
Files: app/images/svgs/cancel.svg -> dist/images/svgs/cancel.svg
Files: app/images/svgs/chat.svg -> dist/images/svgs/chat.svg
Files: app/images/svgs/chat1.svg -> dist/images/svgs/chat1.svg
Files: app/images/svgs/check.svg -> dist/images/svgs/check.svg
Files: app/images/svgs/Digital_Marketing_Image.svg -> dist/images/svgs/Digital_Marketing_Image.svg
Files: app/images/svgs/drupal.svg -> dist/images/svgs/drupal.svg
Files: app/images/svgs/email.svg -> dist/images/svgs/email.svg
Files: app/images/svgs/ink.svg -> dist/images/svgs/ink.svg
Files: app/images/svgs/joomla.svg -> dist/images/svgs/joomla.svg
Files: app/images/svgs/like.svg -> dist/images/svgs/like.svg
Files: app/images/svgs/magento.svg -> dist/images/svgs/magento.svg
Files: app/images/svgs/man.svg -> dist/images/svgs/man.svg
Files: app/images/svgs/phone-call.svg -> dist/images/svgs/phone-call.svg
Files: app/images/svgs/picture.svg -> dist/images/svgs/picture.svg
Files: app/images/svgs/shopping-cart.svg -> dist/images/svgs/shopping-cart.svg
Files: app/images/svgs/wordpress.svg -> dist/images/svgs/wordpress.svg
Options: (none)
Reading app/images/1-high.svg...OK
√ app/images/1-high.svg (saved 7 B 0%)
Writing dist/images/1-high.svg...OK
Reading app/images/9-high.svg...OK
√ app/images/9-high.svg (saved 76.48 kB 25%)
Writing dist/images/9-high.svg...OK
Reading app/images/dreamhost.svg...OK
√ app/images/dreamhost.svg (saved 147 B 6%)
Writing dist/images/dreamhost.svg...OK
Reading app/images/icons/cd-arrow.svg...OK
√ app/images/icons/cd-arrow.svg (saved 156 B 42%)
Writing dist/images/icons/cd-arrow.svg...OK
Reading app/images/icons/cloud.svg...OK
√ app/images/icons/cloud.svg (saved 2.97 kB 47%)
Writing dist/images/icons/cloud.svg...OK
Reading app/images/icons/contract.svg...OK
√ app/images/icons/contract.svg (saved 900 B 35%)
Writing dist/images/icons/contract.svg...OK
Reading app/images/icons/curriculum.svg...OK
√ app/images/icons/curriculum.svg (saved 887 B 27%)
Writing dist/images/icons/curriculum.svg...OK
Reading app/images/icons/http.svg...OK
√ app/images/icons/http.svg (saved 1.18 kB 29%)
Writing dist/images/icons/http.svg...OK
Reading app/images/icons/piggy-bank.svg...OK
√ app/images/icons/piggy-bank.svg (saved 1.07 kB 17%)
Writing dist/images/icons/piggy-bank.svg...OK
Reading app/images/icons/sms_interact.svg...OK
√ app/images/icons/sms_interact.svg (saved 9.31 kB 55%)
Writing dist/images/icons/sms_interact.svg...OK
Reading app/images/icons/speaker.svg...OK
√ app/images/icons/speaker.svg (saved 1.04 kB 29%)
Writing dist/images/icons/speaker.svg...OK
Reading app/images/icons/website.svg...OK
√ app/images/icons/website.svg (saved 1.3 kB 27%)
Writing dist/images/icons/website.svg...OK
Reading app/images/lowa.svg...OK
√ app/images/lowa.svg (saved 47.01 kB 27%)
Writing dist/images/lowa.svg...OK
Reading app/images/svgs/boy.svg...OK
√ app/images/svgs/boy.svg (saved 1.47 kB 22%)
Writing dist/images/svgs/boy.svg...OK
Reading app/images/svgs/call.svg...OK
√ app/images/svgs/call.svg (saved 614 B 22%)
Writing dist/images/svgs/call.svg...OK
Reading app/images/svgs/cancel.svg...OK
√ app/images/svgs/cancel.svg (saved 233 B 50%)
Writing dist/images/svgs/cancel.svg...OK
Reading app/images/svgs/chat.svg...OK
√ app/images/svgs/chat.svg (saved 286 B 19%)
Writing dist/images/svgs/chat.svg...OK
Reading app/images/svgs/chat1.svg...OK
√ app/images/svgs/chat1.svg (saved 283 B 19%)
Writing dist/images/svgs/chat1.svg...OK
Reading app/images/svgs/check.svg...OK
√ app/images/svgs/check.svg (saved 182 B 50%)
Writing dist/images/svgs/check.svg...OK
Reading app/images/svgs/Digital_Marketing_Image.svg...OK
√ app/images/svgs/Digital_Marketing_Image.svg (saved 24.02 kB 23%)
Writing dist/images/svgs/Digital_Marketing_Image.svg...OK
Reading app/images/svgs/drupal.svg...OK
√ app/images/svgs/drupal.svg (saved 22.07 kB 88%)
Writing dist/images/svgs/drupal.svg...OK
Reading app/images/svgs/email.svg...OK
√ app/images/svgs/email.svg (saved 1.24 kB 22%)
Writing dist/images/svgs/email.svg...OK
Reading app/images/svgs/ink.svg...OK
√ app/images/svgs/ink.svg (saved 3.31 kB 41%)
Writing dist/images/svgs/ink.svg...OK
Reading app/images/svgs/joomla.svg...OK
√ app/images/svgs/joomla.svg (saved 1.29 kB 44%)
Writing dist/images/svgs/joomla.svg...OK
Reading app/images/svgs/like.svg...OK
√ app/images/svgs/like.svg (saved 382 B 23%)
Writing dist/images/svgs/like.svg...OK
Reading app/images/svgs/magento.svg...OK
√ app/images/svgs/magento.svg (saved 435 B 40%)
Writing dist/images/svgs/magento.svg...OK
Reading app/images/svgs/man.svg...OK
√ app/images/svgs/man.svg (saved 1.5 kB 23%)
Writing dist/images/svgs/man.svg...OK
Reading app/images/svgs/phone-call.svg...OK
√ app/images/svgs/phone-call.svg (saved 741 B 26%)
Writing dist/images/svgs/phone-call.svg...OK
Reading app/images/svgs/picture.svg...OK
√ app/images/svgs/picture.svg (saved 450 B 24%)
Writing dist/images/svgs/picture.svg...OK
Reading app/images/svgs/shopping-cart.svg...OK
√ app/images/svgs/shopping-cart.svg (saved 663 B 39%)
Writing dist/images/svgs/shopping-cart.svg...OK
Reading app/images/svgs/wordpress.svg...OK
√ app/images/svgs/wordpress.svg (saved 715 B 35%)
Writing dist/images/svgs/wordpress.svg...OK
Total saved: 202.33 kB
Done.
Execution Time (2019-03-26 10:12:18 UTC+5:30)
loading tasks 13ms █ 1%
svgmin:dist 2s ███████████████████████████████████████████████ 99%
Total 2s
Its still working fine on other device with old setup but new setup doesn't work at all. Please check and review.

What is the node version are you using? There might be compatibility issues.
You haven't pasted the what error you got.! So, will give you the general troubleshooting of the issue.
For troubleshooting whenever you are facing kind of wired issue. Just go ahead and clean the cache by using npm cache clean.

Related

Resolve preact Brotli build conflict: same filename

current behavior
preact build --brotli prints the following error:
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
other relevant information
My app is a standard preact-cli 'Default' (preact-cli template).
Not using the --brotli flag builds as desired/expected.
It's clear the js files are being built to .br but with no filename.
Environment Info:
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 # 2.80GHz
Binaries:
Node: 18.12.1
npm: 8.4.1
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (108.0.1462.54)
npmPackages:
preact: ^10.11.2 => 10.11.2
preact-cli: ^3.4.1 => 3.4.1
preact-render-to-string: ^5.2.6 => 5.2.6
preact-router: ^4.1.0 => 4.1.0
Per the preact-cli documentation combined with the only walkthrough I could find on expected behavior I expected to see "... all the generated javascript files also have a .js.br files next to them."
Steps to reproduce the behavior:
preact build --brotli
See error
error
preact build --brotli
‼ WARN Could not find sw.js in C:\... Using the default service worker.
bundle.*****.esm.js ⏤ 91.3 kB
polyfills.*****.esm.js ⏤ 2.18 kB
route-REDACT.chunk.6bef3.css ⏤ 236 B
route-REDACT.chunk.*****.esm.js ⏤ 849 B
route-REDACT.chunk.*****.esm.js ⏤ 1.54 kB
route-REDACT.chunk.64635.css ⏤ 138 B
route-REDACT.chunk.*****.esm.js ⏤ 641 B
route-REDACT.chunk.*****.esm.js ⏤ 294 B
sw.js ⏤ 10.9 kB
sw-esm.js ⏤ 10.9 kB
polyfills.77b1f.js ⏤ 2.28 kB
index.html ⏤ 1.66 kB (-19 B)
200.html ⏤ 1.17 kB
bundle.ccccc.css ⏤ 5.36 kB
route-REDACT.chunk.230c8.css ⏤ 139 B
route-REDACT.chunk.*****.esm.js ⏤ 405 B
route-REDACT.chunk.f85cc.css ⏤ 571 B
bundle.bbbbb.js ⏤ 92.7 kB
route-REDACT.chunk.f4a3f.js ⏤ 412 B
route-REDACT.chunk.4a8c5.js ⏤ 1.36 kB
route-REDACT.chunk.56f91.js ⏤ 2.14 kB
route-REDACT.chunk.e7d3e.js ⏤ 1.16 kB
route-REDACT.chunk.68634.js ⏤ 293 B
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN asset size limit: The following asset(s) exceed the recommended size limit (195 KiB).
This can impact web performance.
Assets:
bundle.aaaaa.esm.js (376 KiB)
bundle.bbbbb.js (390 KiB)
‼ WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (195 KiB). This can impact web performance.
Entrypoints:
bundle (785 KiB)
bundle.ccccc.css
bundle.bbbbb.js
bundle.aaaaa.esm.js
`your text`‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN Conflict: Multiple assets emit different content to the same filename .br
‼ WARN asset size limit: The following asset(s) exceed the recommended size limit (195 KiB).
This can impact web performance.
Assets:
bundle.aaaaa.esm.js (376 KiB)
bundle.bbbbb.js (390 KiB)
‼ WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (195 KiB). This can impact web performance.
Entrypoints:
bundle (785 KiB)
bundle.ccccc.css
bundle.bbbbb.js
bundle.aaaaa.esm.js
Fix for this issue was release as preact-cli v3.4.3.

yarn run Error: spawn EACCES in JHipster

i'm creating project with jhipster Version 4.7.0.
when i run the angular, with yarn run webpack:dev --watch-content-base
shows me error like below.
yarn start v0.27.5
$ yarn run webpack:dev --watch-content-base
10% building modules 4/4 modules 0 active[HPM] Proxy created: [ '/api',
'/management',
'/swagger-resources',
'/v2/api-docs',
'/h2-console' ] -> http://localhost:8080
Project is running at http://localhost:9060/
webpack output is served from /
Content not from webpack is served from ./target/www
11% building modules 13/20 modules 7 active ...modules/style-loader/lib/addStyles.jsWarning: The 'no-use-before-declare' rule requires type infomation.
[at-loader] Using typescript#2.4.2 from typescript and "tsconfig.json" from /Users/user/Documents/myproject/tsconfig.json.
136040ms building modules
303ms sealing
1ms optimizing
0ms basic module optimization
74ms module optimization
0ms advanced module optimization
109ms basic chunk optimization
0ms chunk optimization
0ms advanced chunk optimization
0ms module and chunk tree optimization
0ms chunk modules optimization
1ms advanced chunk modules optimization
40ms module reviving
137ms module order optimization
22ms module id optimization
15ms chunk reviving
0ms chunk order optimization
132ms chunk id optimization
200ms hashing
3ms module assets processing
26852ms chunk assets processing
8863ms additional chunk assets processing
20ms recording
0ms additional asset processing
0ms chunk asset optimization
94% asset optimization
[at-loader] Checking started in a separate process...
[at-loader] Ok, 0.256 sec.
MergetJsonsWebpackPlugin compilation started...
MergetJsonsWebpackPlugin compilation completed...
1052ms asset optimization
95% emittingMergetJsonsWebpackPlugin emit starts...
MergetJsonsWebpackPlugin emit completed...
Error: spawn EACCES
at exports._errnoException (util.js:1024:11)
at ChildProcess.spawn (internal/child_process.js:325:11)
at exports.spawn (child_process.js:493:9)
at Object.exports.execFile (child_process.js:208:15)
at Object.module.exports.fileCommand (/Users/user/Documents/myproject/node_modules/node-notifier/lib/utils.js:53:13)
at NotificationCenter.notify (/Users/user/Documents/myproject/node_modules/node-notifier/notifiers/notificationcenter.js:66:11)
at module.exports.WebpackNotifierPlugin.compilationDone (/Users/user/Documents/myproject/node_modules/webpack-notifier/index.js:62:18)
at Compiler.applyPlugins (/Users/user/Documents/myproject/node_modules/tapable/lib/Tapable.js:61:14)
at Watching._done (/Users/user/Documents/myproject/node_modules/webpack/lib/Compiler.js:104:17)
at compiler.emitRecords.err (/Users/user/Documents/myproject/node_modules/webpack/lib/Compiler.js:78:19)
at Compiler.emitRecords (/Users/user/Documents/myproject/node_modules/webpack/lib/Compiler.js:375:38)
at compiler.emitAssets.err (/Users/user/Documents/myproject/node_modules/webpack/lib/Compiler.js:61:20)
at applyPluginsAsyncSeries1.err (/Users/user/Documents/myproject/node_modules/webpack/lib/Compiler.js:368:12)
at next (/Users/user/Documents/myproject/node_modules/tapable/lib/Tapable.js:218:11)
at Compiler.compiler.plugin (/Users/user/Documents/myproject/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at next (/Users/user/Documents/myproject/node_modules/tapable/lib/Tapable.js:220:14)
at Compiler.compiler.plugin (/Users/user/Documents/myproject/node_modules/merge-jsons-webpack-plugin/index.js:47:17)
at next (/Users/user/Documents/myproject/node_modules/tapable/lib/Tapable.js:220:14)
at callback (/Users/user/Documents/myproject/node_modules/copy-webpack-plugin/dist/index.js:108:17)
at Compiler.<anonymous> (/Users/user/Documents/myproject/node_modules/copy-webpack-plugin/dist/index.js:131:13)
at Compiler.applyPluginsAsyncSeries1 (/Users/user/Documents/myproject/node_modules/tapable/lib/Tapable.js:222:13)
at Compiler.afterEmit (/Users/user/Documents/myproject/node_modules/webpack/lib/Compiler.js:365:9)
error Command failed with exit code 1.
error Command failed with exit code 1.
error Command failed with exit code 1.
can anybody explain to me what is happen?
and how to fix it.
i'm running macOS Sierra.
NodeJS 6.11.3 LTS.
thanks.

On Windows, wepback build is blocked during 'emit' phase

I created a simple webpack project for a Typescript library : https://github.com/lbar/test-webpackts-issue
On linux, npm run build finishes successfully:
> rimraf dist && webpack --progress --profile
10% 0/1 build modulests-loader: Using typescript#1.8.10 and /tmp/testwebpack/tsconfig.json 8030ms1217ms optimi5ms emit
Hash: 8eac1502f3b7a9a19be2
Version: webpack 1.13.1
Time: 2596ms
Asset Size Chunks Chunk Names
index.js 816 bytes 0 [emitted] index
index.js.map 6.07 kB 0 [emitted] index
/tmp/testwebpack/dist/index.d.ts 31 bytes [emitted]
/tmp/testwebpack/dist/src/info.d.ts 49 bytes [emitted]
+ 2 hidden modules
On Windows, npm run build is blocked during 'emit' phase. The output is :
> rimraf dist && webpack --progress --profile
10% 0/1 build modulests-loader: Using typescript#1.8.10 and C:\tmp\testwebpack\tsconfig.jso
1836ms build modules
3ms seal
7ms optimize
3ms hashing
7ms create chunk assets
79ms additional chunk assets
19ms optimize chunk assets
837ms optimize assets
95% emit
The version of node differs: 6.2.2 on Windows and 4.4.5 on Linux. I don't know if it may be the cause.
Has anyone an idea about the problem? Issue in webpack, ts-loader or typescript?
One more thing, call to tsc is working on both systems.
Thanks for your help
This problem is caused by an issue in ts-loader: https://github.com/TypeStrong/ts-loader/issues/185
A Pull Request is waiting fixes for project core team.
Webpack can use "awesome-typescript-loader" to avoid this issue.

Grunt grunt-contrib-cssmin runs unending doesn't combine files

I am having a strange issue with grunt-contrib-cssmin. It never stops or gives errors. I am using
C:\projects\doeclf>grunt --version && node --version && npm --version
grunt-cli v0.1.13
grunt v0.4.5
v0.12.4
2.10.1
My grunt.js has following in it
cssmin: {
target: {
files: [{
expand: true,
cwd: 'css/',
src: ['index.css', '!*.min.css'],
dest: 'css/',
ext: '.min.css'
}]
}
}
My project structure is as follows
|
|
grunt.js
|
|__css
|
|__index.css
When I run my grunt task this is the out it throws and it never finishes.
the output from my grunt cssmin --verbose is
[4mInitializing[24m
Command-line options: [36m--verbose[39m
Reading "Gruntfile.js" Gruntfile...[32mOK[39m
[1mRegistering Gruntfile tasks.[22m
Reading package.json...[32mOK[39m
Parsing package.json...[32mOK[39m
Initializing config...[32mOK[39m
[1mRegistering "grunt-contrib-requirejs" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-requirejs\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-requirejs\package.json...[32mOK[39m
Loading "requirejs.js" tasks...[32mOK[39m
+ [36mrequirejs[39m
[1mRegistering "grunt-contrib-compass" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-compass\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-compass\package.json...[32mOK[39m
Loading "compass.js" tasks...[32mOK[39m
+ [36mcompass[39m
[1mRegistering "grunt-contrib-concat" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-concat\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-concat\package.json...[32mOK[39m
Loading "concat.js" tasks...[32mOK[39m
+ [36mconcat[39m
[1mRegistering "grunt-contrib-connect" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-connect\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-connect\package.json...[32mOK[39m
Loading "connect.js" tasks...[32mOK[39m
+ [36mconnect[39m
[1mRegistering "grunt-contrib-cssmin" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-cssmin\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-cssmin\package.json...[32mOK[39m
Loading "cssmin.js" tasks...[32mOK[39m
+ [36mcssmin[39m
[1mRegistering "csswring" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\csswring\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\csswring\package.json...[32mOK[39m
Loading "csswring.js" tasks...[32mOK[39m
+ [36mcsswring[39m
[1mRegistering "grunt-contrib-sass" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-sass\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-sass\package.json...[32mOK[39m
Loading "sass.js" tasks...[32mOK[39m
+ [36msass[39m
[1mRegistering "grunt-contrib-uglify" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-uglify\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-uglify\package.json...[32mOK[39m
Loading "uglify.js" tasks...[32mOK[39m
+ [36muglify[39m
[1mRegistering "grunt-contrib-watch" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-watch\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-watch\package.json...[32mOK[39m
Loading "watch.js" tasks...[32mOK[39m
+ [36mwatch[39m
[1mRegistering "grunt-express" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-express\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-express\package.json...[32mOK[39m
[1mRegistering "grunt-parallel" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-express\node_modules\grunt-parallel\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-express\node_modules\grunt-parallel\package.json...[32mOK[39m
Loading "parallel.js" tasks...[32mOK[39m
+ [36mparallel[39m
Loading "express.js" tasks...[32mOK[39m
+ [36mexpress[39m, [36mexpress-keepalive[39m, [36mexpress-restart[39m, [36mexpress-server[39m, [36mexpress-start[39m
[1mRegistering "grunt-open" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-open\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-open\package.json...[32mOK[39m
Loading "open.js" tasks...[32mOK[39m
+ [36mopen[39m
Loading "Gruntfile.js" tasks...[32mOK[39m
+ [36mbuildsass[39m, [36mconcatcss[39m, [36mcssmin[39m, [36mdefault[39m, [36mserver[39m
Running tasks: [36mcssmin[39m
[4mRunning "cssmin" task[24m
[4mRunning "cssmin" task[24m
[4mRunning "cssmin" task[24m
[4mRunning "cssmin" task[24m
[4mRunning "cssmin" task[24m
Your target is fine and works perfectly, so the issue is somewhere else in your code.
Specifically, your last line shows that you are redefining your own cssmin task
Loading "Gruntfile.js" tasks...[32mOK[39m
+ [36mbuildsass[39m, [36mconcatcss[39m, [36mcssmin[39m, [36mdefault[39m, [36mserver[39m
This probably causes the infinite looping, call your own task another name (mincss?) and you should be fine.

Unable to generate "dist" folder in yeoman angular generated webapp

I am unable to generate dist folder in the web app built and generated using yeoman angular generator.
I am pasting the verbose of grunt build. Please check if this is helpful.
pdc1-f3t18r1:ShippingSolution administrator$ grunt --verbose build
Initializing
Command-line options: --verbose
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "grunt-autoprefixer" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-autoprefixer/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-autoprefixer/package.json...OK
Loading "autoprefixer.js" tasks...OK
+ autoprefixer
Registering "grunt-concurrent" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-concurrent/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-concurrent/package.json...OK
Loading "concurrent.js" tasks...OK
+ concurrent
Registering "grunt-contrib-clean" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-clean/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-clean/package.json...OK
Loading "clean.js" tasks...OK
+ clean
Registering "grunt-contrib-compass" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-compass/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-compass/package.json...OK
Loading "compass.js" tasks...OK
+ compass
Registering "grunt-contrib-concat" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-concat/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-concat/package.json...OK
Loading "concat.js" tasks...OK
+ concat
Registering "grunt-contrib-connect" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-connect/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-connect/package.json...OK
Loading "connect.js" tasks...OK
+ connect
Registering "grunt-contrib-copy" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-copy/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-copy/package.json...OK
Loading "copy.js" tasks...OK
+ copy
Registering "grunt-contrib-cssmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-cssmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-cssmin/package.json...OK
Loading "cssmin.js" tasks...OK
+ cssmin
Registering "grunt-contrib-htmlmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-htmlmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-htmlmin/package.json...OK
Loading "htmlmin.js" tasks...OK
+ htmlmin
Registering "grunt-contrib-imagemin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/package.json...OK
Loading "imagemin.js" tasks...ERROR
>> Error: Cannot find module 'bin-wrapper'
>> at Function.Module._resolveFilename (module.js:338:15)
>> at Function.Module._load (module.js:280:25)
>> at Module.require (module.js:364:17)
>> at require (module.js:380:17)
>> at Object.<anonymous> (/Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/lib/index.js:3:18)
>> at Module._compile (module.js:456:26)
>> at Object.Module._extensions..js (module.js:474:10)
>> at Module.load (module.js:356:32)
>> at Function.Module._load (module.js:312:12)
>> at Module.require (module.js:364:17)
Registering "grunt-contrib-jshint" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-jshint/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-jshint/package.json...OK
Loading "jshint.js" tasks...OK
+ jshint
Registering "grunt-contrib-uglify" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-uglify/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-uglify/package.json...OK
Loading "uglify.js" tasks...OK
+ uglify
Registering "grunt-contrib-watch" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-watch/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-watch/package.json...OK
Loading "watch.js" tasks...OK
+ watch
Registering "grunt-filerev" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-filerev/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-filerev/package.json...OK
Loading "filerev.js" tasks...OK
+ filerev
Registering "grunt-google-cdn" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-google-cdn/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-google-cdn/package.json...OK
Loading "cdnify.js" tasks...OK
+ cdnify
Registering "grunt-newer" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-newer/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-newer/package.json...OK
Loading "newer.js" tasks...OK
+ any-newer, newer, newer-clean, newer-postrun
Registering "grunt-ng-annotate" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-ng-annotate/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-ng-annotate/package.json...OK
Loading "ng-annotate.js" tasks...OK
+ ngAnnotate
Registering "grunt-svgmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-svgmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-svgmin/package.json...OK
Loading "svgmin.js" tasks...OK
+ svgmin
Registering "grunt-usemin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-usemin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-usemin/package.json...OK
Loading "usemin.js" tasks...OK
+ usemin, useminPrepare
Registering "grunt-wiredep" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-wiredep/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-wiredep/package.json...OK
Loading "wiredep.js" tasks...OK
+ wiredep
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
+ build, default, serve, server, test
Running tasks: build
Running "build" task
Running "clean:dist" (clean) task
Verifying property clean.dist exists in config...OK
Files: [no src]
Options: force=false, no-write=false
Options: force=false, no-write=false
Running "wiredep" task
Running "wiredep:app" (wiredep) task
Verifying property wiredep.app exists in config...OK
Files: app/index.html
Verifying property wiredep.app.src exists in config...OK
Options: src=["app/index.html"], ignorePath={}
Running "wiredep:sass" (wiredep) task
Verifying property wiredep.sass exists in config...OK
Files: app/styles/main.scss
Verifying property wiredep.sass.src exists in config...OK
Options: src=["app/styles/{,*/}*.{scss,sass}"], ignorePath={}
Running "useminPrepare" task
Running "useminPrepare:html" (useminPrepare) task
Verifying property useminPrepare.html exists in config...OK
Files: app/index.html -> html
Options: dest="dist", flow={"html":{"steps":{"js":["concat","uglifyjs"],"css":["cssmin"]},"post":{}}}
Going through app/index.html to update the config
Looking for build script HTML comment blocks
Configuration is now:
concat:
{ generated:
{ files:
[ { dest: '.tmp/concat/scripts/oldieshim.js',
src:
[ 'bower_components/es5-shim/es5-shim.js ',
'bower_components/json3/lib/json3.js ' ] },
{ dest: '.tmp/concat/scripts/vendor.js',
src:
[ 'bower_components/jquery/dist/jquery.js',
'bower_components/angular/angular.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/angular-animate/angular-animate.js',
'bower_components/angular-aria/angular-aria.js',
'bower_components/angular-cookies/angular-cookies.js',
'bower_components/angular-messages/angular-messages.js',
'bower_components/angular-resource/angular-resource.js',
'bower_components/angular-route/angular-route.js',
'bower_components/angular-sanitize/angular-sanitize.js',
'bower_components/angular-touch/angular-touch.js' ] },
{ dest: '.tmp/concat/scripts/scripts.js',
src:
[ '{.tmp,app}/scripts/app.js ',
'{.tmp,app}/scripts/controllers/main.js ' ] } ] } }
uglify:
{ generated:
{ files:
[ { dest: 'dist/scripts/oldieshim.js',
src: [ '.tmp/concat/scripts/oldieshim.js' ] },
{ dest: 'dist/scripts/vendor.js',
src: [ '.tmp/concat/scripts/vendor.js' ] },
{ dest: 'dist/scripts/scripts.js',
src: [ '.tmp/concat/scripts/scripts.js' ] } ] } }
cssmin:
{ generated:
{ files:
[ { dest: 'dist/styles/vendor.css',
src: [ 'bower_components/bootstrap/dist/css/bootstrap.css' ] },
{ dest: 'dist/styles/main.css',
src: [ '.tmp/styles/main.css' ] } ] } }
Running "concurrent:dist" (concurrent) task
Verifying property concurrent.dist exists in config...OK
Files: [no src] -> dist
Options: limit=8
Warning: Initializing
Command-line options: --verbose
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "grunt-autoprefixer" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-autoprefixer/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-autoprefixer/package.json...OK
Loading "autoprefixer.js" tasks...OK
+ autoprefixer
Registering "grunt-concurrent" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-concurrent/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-concurrent/package.json...OK
Loading "concurrent.js" tasks...OK
+ concurrent
Registering "grunt-contrib-clean" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-clean/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-clean/package.json...OK
Loading "clean.js" tasks...OK
+ clean
Registering "grunt-contrib-compass" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-compass/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-compass/package.json...OK
Loading "compass.js" tasks...OK
+ compass
Registering "grunt-contrib-concat" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-concat/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-concat/package.json...OK
Loading "concat.js" tasks...OK
+ concat
Registering "grunt-contrib-connect" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-connect/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-connect/package.json...OK
Loading "connect.js" tasks...OK
+ connect
Registering "grunt-contrib-copy" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-copy/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-copy/package.json...OK
Loading "copy.js" tasks...OK
+ copy
Registering "grunt-contrib-cssmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-cssmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-cssmin/package.json...OK
Loading "cssmin.js" tasks...OK
+ cssmin
Registering "grunt-contrib-htmlmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-htmlmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-htmlmin/package.json...OK
Loading "htmlmin.js" tasks...OK
+ htmlmin
Registering "grunt-contrib-imagemin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/package.json...OK
Loading "imagemin.js" tasks...ERROR
>> Error: Cannot find module 'bin-wrapper'
>> at Function.Module._resolveFilename (module.js:338:15)
>> at Function.Module._load (module.js:280:25)
>> at Module.require (module.js:364:17)
>> at require (module.js:380:17)
>> at Object.<anonymous> (/Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/lib/index.js:3:18)
>> at Module._compile (module.js:456:26)
>> at Object.Module._extensions..js (module.js:474:10)
>> at Module.load (module.js:356:32)
>> at Function.Module._load (module.js:312:12)
>> at Module.require (module.js:364:17)
Registering "grunt-contrib-jshint" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-jshint/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-jshint/package.json...OK
Loading "jshint.js" tasks...OK
+ jshint
Registering "grunt-contrib-uglify" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-uglify/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-uglify/package.json...OK
Loading "uglify.js" tasks...OK
+ uglify
Registering "grunt-contrib-watch" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-watch/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-watch/package.json...OK
Loading "watch.js" tasks...OK
+ watch
Registering "grunt-filerev" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-filerev/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-filerev/package.json...OK
Loading "filerev.js" tasks...OK
+ filerev
Registering "grunt-google-cdn" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-google-cdn/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-google-cdn/package.json...OK
Loading "cdnify.js" tasks...OK
+ cdnify
Registering "grunt-newer" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-newer/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-newer/package.json...OK
Loading "newer.js" tasks...OK
+ any-newer, newer, newer-clean, newer-postrun
Registering "grunt-ng-annotate" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-ng-annotate/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-ng-annotate/package.json...OK
Loading "ng-annotate.js" tasks...OK
+ ngAnnotate
Registering "grunt-svgmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-svgmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-svgmin/package.json...OK
Loading "svgmin.js" tasks...OK
+ svgmin
Registering "grunt-usemin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-usemin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-usemin/package.json...OK
Loading "usemin.js" tasks...OK
+ usemin, useminPrepare
Registering "grunt-wiredep" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-wiredep/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-wiredep/package.json...OK
Loading "wiredep.js" tasks...OK
+ wiredep
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
+ build, default, serve, server, test
Running tasks: compass:dist
Running "compass:dist" (compass) task
Verifying property compass.dist exists in config...OK
File: [no files]
Options: sassDir="app/styles", cssDir=".tmp/styles", generatedImagesDir="dist/images/generated", imagesDir="app/images", javascriptsDir="app/scripts", fontsDir="app/styles/fonts", importPath="./bower_components", httpImagesPath="/images", httpGeneratedImagesPath="/images/generated", httpFontsPath="/styles/fonts", relativeAssets=false, assetCacheBuster=false, raw="Sass::Script::Number.precision = 10\n"
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.
Execution Time (2015-01-27 14:27:21 UTC)
loading tasks 5ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 28%
compass:dist 12ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 67%
Total 18ms Use --force to continue.
Aborted due to warnings.
Execution Time (2015-01-27 14:27:19 UTC)
loading tasks 6ms 0%
clean:dist 6ms 0%
wiredep:app 185ms ▇▇▇▇▇ 10%
wiredep:sass 11ms ▇ 1%
useminPrepare:html 18ms ▇ 1%
concurrent:dist 1.7s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 88%
Total 1.9s
pdc1-f3t18r1:ShippingSolution administrator$
Is there something I am missing?
Thanks,
Ankit
I was having this same problem and I found that in the build process there is a task in the grunt file the uses ngAnnotate.
So I check on the package.config and I saw that package for grung-ng-annotate was missing so I went through their page and update it.
Use this to install it
npm install grunt-ng-annotate --save-dev
This will add your package to the config and then you will be able to run the "grunt" task without a problem and generate the "dist" folder.
https://github.com/mzgol/grunt-ng-annotate For more information.

Resources