Generator-jhipster: build error:The system cannot find the path specified.

Created on 14 Feb 2017  Â·  49Comments  Â·  Source: jhipster/generator-jhipster

  • Please follow the issue template below for bug reports and feature requests.
  • Tickets opened without any of these informations will be closed without any explanation.
Overview of the issue

Running yo jhipster but build failed
The message is

~~~
`WARNING in ./src/main/webapp/content/images/hipster2x.png
DEPRECATED. Configure gifsicle's interlaced option in it's own options. (gifsicl
e.interlaced)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:896-941
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

WARNING in ./src/main/webapp/content/images/hipster2x.png
DEPRECATED. Configure optipng's optimizationLevel option in it's own options. (o
ptipng.optimizationLevel)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:896-941
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

WARNING in ./src/main/webapp/content/images/hipster.png
DEPRECATED. Configure gifsicle's interlaced option in it's own options. (gifsicl
e.interlaced)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:307-350
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

WARNING in ./src/main/webapp/content/images/hipster.png
DEPRECATED. Configure optipng's optimizationLevel option in it's own options. (o
ptipng.optimizationLevel)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:307-350
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

WARNING in ./src/main/webapp/content/images/logo-jhipster.png
DEPRECATED. Configure gifsicle's interlaced option in it's own options. (gifsicl
e.interlaced)
@ ./~/css-loader!./src/main/webapp/app/layouts/navbar/navbar.css 6:1596-1648
@ ./src/main/webapp/app/layouts/navbar/navbar.css
@ ./src/main/webapp/app/layouts/navbar/navbar.component.ts
@ ./src/main/webapp/app/layouts/index.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

WARNING in ./src/main/webapp/content/images/logo-jhipster.png
DEPRECATED. Configure optipng's optimizationLevel option in it's own options. (o
ptipng.optimizationLevel)
@ ./~/css-loader!./src/main/webapp/app/layouts/navbar/navbar.css 6:1596-1648
@ ./src/main/webapp/app/layouts/navbar/navbar.css
@ ./src/main/webapp/app/layouts/navbar/navbar.component.ts
@ ./src/main/webapp/app/layouts/index.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

ERROR in ./src/main/webapp/content/images/hipster2x.png
Module build failed: Error: The system cannot find the path specified.

at notFoundError (D:\demo\node_modules\execa\node_modules\cross-spawn\lib\en

oent.js:11:11)
at verifyENOENT (D:demonode_modulesexecanode_modulescross-spawnlibeno
ent.js:46:16)
at ChildProcess.cp.emit (D:demonode_modulesexecanode_modulescross-spawn
libenoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:896-941
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

ERROR in ./src/main/webapp/content/images/hipster.png
Module build failed: Error: The system cannot find the path specified.

at notFoundError (D:\demo\node_modules\execa\node_modules\cross-spawn\lib\en

oent.js:11:11)
at verifyENOENT (D:demonode_modulesexecanode_modulescross-spawnlibeno
ent.js:46:16)
at ChildProcess.cp.emit (D:demonode_modulesexecanode_modulescross-spawn
libenoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:307-350
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

ERROR in ./src/main/webapp/content/images/logo-jhipster.png
Module build failed: Error: The system cannot find the path specified.

at notFoundError (D:\demo\node_modules\execa\node_modules\cross-spawn\lib\en

oent.js:11:11)
at verifyENOENT (D:demonode_modulesexecanode_modulescross-spawnlibeno
ent.js:46:16)
at ChildProcess.cp.emit (D:demonode_modulesexecanode_modulescross-spawn
libenoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
@ ./~/css-loader!./src/main/webapp/app/layouts/navbar/navbar.css 6:1596-1648
@ ./src/main/webapp/app/layouts/navbar/navbar.css
@ ./src/main/webapp/app/layouts/navbar/navbar.component.ts
@ ./src/main/webapp/app/layouts/index.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts
Child html-webpack-plugin for "index.html":
[./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.ht
ml] ./~/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html 1.16 kB {
0} [built]
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this
command.
Error jhipster

ERROR! yarn install failed.`
~~~

JHipster Version(s)

v4.0.3

JHipster configuration

~
{
"generator-jhipster": {
"jhipsterVersion": "4.0.3",
"baseName": "demo",
"packageName": "com.myapp",
"packageFolder": "com/myapp",
"serverPort": "8080",
"authenticationType": "oauth2",
"hibernateCache": "no",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "mysql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSocialSignIn": false,
"useSass": false,
"clientPackageManager": "yarn",
"applicationType": "monolith",
"testFrameworks": [
"gatling"
],
"jhiPrefix": "jhi",
"enableTranslation": false,
"clientFramework": "angular2"
}
}
~

Browsers and Operating System

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

git version 2.11.0.windows.3

node: v6.9.5

npm: 4.2.0

yeoman: 1.8.5

yarn: 0.19.1`

angular

Most helpful comment

The more I investigate this issue , the less I'm convinced about the benefits of using image-webpack-loader, it seems to depend too much on dependencies which are difficult to build on all platforms especially OSX and Windows. All this stuff just to optimize images that may be have already been optimized by a graphist using dedicated tools.... 😭

Personally, I think that we should get rid of this and move it to an optional module, the user experience is just too frustrating and support is too complex.

What do you think @jhipster/developers ?

All 49 comments

image

Yes I'm seeing those DEPRECATED. Configure gifsicle's interlaced option in it's own options and they are new to me. There might be an issue with this on Windows?

There seems to be a solution here:

https://github.com/tcoopman/image-webpack-loader/issues/68

-> let's do this, and close this ticket, but @guayeguaye I can't test this on Windows so I'm not 100% sure it's your bug, so don't hesitate to comment & add more info if you still have the bug after that

@flaviencathala as you're our Webpack guru, can you have a look at this today?

when i install the version 4.0.2 or 4.0.1 ,the warning is missing,but the errors still exist

`ERROR in ./src/main/webapp/content/images/hipster2x.png
Module build failed: Error: The system cannot find the path specified.

at notFoundError (D:demonode_modulesexecanode_modulescross-spawnliben
oent.js:11:11)
at verifyENOENT (D:demonode_modulesexecanode_modulescross-spawnlibeno
ent.js:46:16)
at ChildProcess.cp.emit (D:demonode_modulesexecanode_modulescross-spawn
libenoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:896-941
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts`

I delete the line image-webpack-loader?bypassOnDebug&optimizationLevel=7&interlaced=false in webpack.common.js

yarn start

It's OK

The warnings are due to library updates. Nothing serious yet but should be
fixed as its deprecated.

The warning doesn't seem related to the issue reported so it would be nice
if someone can reproduce this in windows.

Thanks & regards,
Deepu

On 14 Feb 2017 8:20 a.m., "guayeguaye" notifications@github.com wrote:

I delete the line image-webpack-loader?bypassOnDebug&optimizationLevel=7&
interlaced=false in webpack.common.js

It's OK

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jhipster/generator-jhipster/issues/5196#issuecomment-279627231,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDlF9C54HYJ90OjXIe43nouQ4EXkMuWks5rcVWtgaJpZM4L__iV
.

@deepu105 the image loader was downgraded by @flaviencathala as it was causing the warnings

Then I have no idea if that fixes anything on Windows, but I guess there is a link, as we didn't have that error before

I dont like downgrading to fix deprecation as we cant always stay with an old lib. here is the actual fix described in the libs issue tracker https://github.com/tcoopman/image-webpack-loader/issues/68

I made a PR with a clean fix for this.

Closing this as the PR is merged, @guayeguaye please re-open or comment if you still have the issue with our next release, as we can't test this

But the error still persists....so any solution for that...

@Abhi365 : it won't help by just saying:

the error still persists

Give more information, your configuration, your OS, your version etc, and the exact use case to reproduce

Overview of the issue:

~~~
identical srcmainwebappappaccountactivateactivate.service.ts
identical srcmainwebappappaccountpasswordpassword.route.ts
identical srcmainwebappappaccountpasswordpassword-strength-bar.component.t
s
identical srcmainwebappappaccountpasswordpassword.component.ts
identical srcmainwebappappaccountpasswordpassword.component.html
identical srcmainwebappappaccountpasswordpassword.service.ts
identical srcmainwebappappaccountregisterregister.route.ts
identical srcmainwebappappaccountregisterregister.component.ts
identical srcmainwebappappaccountregisterregister.component.html
identical srcmainwebappappaccountregisterregister.service.ts
identical srcmainwebappappaccountpassword-resetinitpassword-reset-init.ro
ute.ts
identical srcmainwebappappaccountpassword-resetinitpassword-reset-init.co
mponent.ts
identical srcmainwebappappaccountpassword-resetinitpassword-reset-init.co
mponent.html
identical srcmainwebappappaccountpassword-resetinitpassword-reset-init.se
rvice.ts
identical srcmainwebappappaccountpassword-resetfinishpassword-reset-finis
h.route.ts
identical srcmainwebappappaccountpassword-resetfinishpassword-reset-finis
h.component.ts
identical srcmainwebappappaccountpassword-resetfinishpassword-reset-finis
h.component.html
identical srcmainwebappappaccountpassword-resetfinishpassword-reset-finis
h.service.ts
identical srcmainwebappappaccountsettingssettings.route.ts
identical srcmainwebappappaccountsettingssettings.component.ts
identical srcmainwebappappaccountsettingssettings.component.html
identical srcmainwebappappaccountpasswordpassword-strength-bar.css
identical srcmainwebappappadminindex.ts
identical srcmainwebappappadminadmin.route.ts
identical srcmainwebappappadminadmin.module.ts
identical srcmainwebappappadminauditsaudits.route.ts
identical srcmainwebappappadminauditsaudit-data.model.ts
identical srcmainwebappappadminauditsaudit.model.ts
identical srcmainwebappappadminauditsaudits.component.ts
identical srcmainwebappappadminauditsaudits.component.html
identical srcmainwebappappadminauditsaudits.service.ts
identical srcmainwebappappadminconfigurationconfiguration.route.ts
identical srcmainwebappappadminconfigurationconfiguration.component.ts
identical srcmainwebappappadminconfigurationconfiguration.component.html
identical srcmainwebappappadminconfigurationconfiguration.service.ts
identical srcmainwebappappadmindocsdocs.route.ts
identical srcmainwebappappadmindocsdocs.component.ts
identical srcmainwebappappadmindocsdocs.component.html
identical srcmainwebappappadminhealthhealth.route.ts
identical srcmainwebappappadminhealthhealth.component.ts
identical srcmainwebappappadminhealthhealth.component.html
identical srcmainwebappappadminhealthhealth-modal.component.ts
identical srcmainwebappappadminhealthhealth-modal.component.html
identical srcmainwebappappadminhealthhealth.service.ts
identical srcmainwebappappadminlogslogs.route.ts
identical srcmainwebappappadminlogslog.model.ts
identical srcmainwebappappadminlogslogs.component.ts
identical srcmainwebappappadminlogslogs.component.html
identical srcmainwebappappadminlogslogs.service.ts
identical srcmainwebappappadminmetricsmetrics.route.ts
identical srcmainwebappappadminmetricsmetrics.component.ts
identical srcmainwebappappadminmetricsmetrics.component.html
identical srcmainwebappappadminmetricsmetrics-modal.component.ts
identical srcmainwebappappadminmetricsmetrics-modal.component.html
identical srcmainwebappappadminmetricsmetrics.service.ts
identical srcmainwebappappadminuser-managementuser-management.route.ts
identical srcmainwebappappadminuser-managementuser-management.component.ts

identical srcmainwebappappadminuser-managementuser-management.component.ht
ml
identical srcmainwebappappadminuser-managementuser-management-detail.compo
nent.ts
identical srcmainwebappappadminuser-managementuser-management-detail.compo
nent.html
identical srcmainwebappappadminuser-managementuser-management-dialog.compo
nent.ts
identical srcmainwebappappadminuser-managementuser-management-dialog.compo
nent.html
identical srcmainwebappappadminuser-managementuser-management-delete-dialo
g.component.ts
identical srcmainwebappappadminuser-managementuser-management-delete-dialo
g.component.html
identical srcmainwebappappadminuser-managementuser-modal.service.ts
identical srcmainwebappappsharedindex.ts
identical srcmainwebappappsharedshared.module.ts
identical srcmainwebappappsharedshared-libs.module.ts
identical srcmainwebappappsharedshared-common.module.ts
identical srcmainwebappappsharedconstantspagination.constants.ts
identical srcmainwebappappshareduseraccount.model.ts
identical srcmainwebappappsharedloginlogin.component.ts
identical srcmainwebappappsharedloginlogin.component.html
identical srcmainwebappappsharedloginlogin.service.ts
identical srcmainwebappappsharedloginlogin-modal.service.ts
identical srcmainwebappappsharedalertalert.component.ts
identical srcmainwebappappsharedalertalert-error.component.ts
identical srcmainwebappappshareduseruser.model.ts
identical srcmainwebappappshareduseruser.service.ts
identical srcmainwebappappsharedauthauth.service.ts
identical srcmainwebappappsharedauthcsrf.service.ts
identical srcmainwebappappsharedauthstate-storage.service.ts
identical srcmainwebappappsharedauthprincipal.service.ts
identical srcmainwebappappsharedauthhas-any-authority.directive.ts
identical srcmainwebappappsharedauthaccount.service.ts
identical srcmainwebappappsharedauthuser-route-access-service.ts
identical srctestjavascriptkarma.conf.js
identical srctestjavascriptspecentry.ts
identical srctestjavascriptspecappaccountactivateactivate.component.spec.
ts
identical srctestjavascriptspecappaccountpasswordpassword.component.spec.
ts
identical srctestjavascriptspecappaccountpasswordpassword-strength-bar.co
mponent.spec.ts
identical srctestjavascriptspecappaccountpassword-resetinitpassword-rese
t-init.component.spec.ts
identical srctestjavascriptspecappaccountpassword-resetfinishpassword-re
set-finish.component.spec.ts
identical srctestjavascriptspecappaccountregisterregister.component.spec.
ts
identical srctestjavascriptspecappaccountsettingssettings.component.spec.
ts
identical srctestjavascriptspecappadminhealthhealth.component.spec.ts
identical srctestjavascriptspechelpersspyobject.ts
identical srctestjavascriptspechelpersmock-account.service.ts
identical srctestjavascriptspechelpersmock-principal.service.ts
identical srctestjavascriptspechelpersmock-route.service.ts
identical srctestjavascripte2eaccountaccount.spec.ts
identical srctestjavascripte2eadminadministration.spec.ts
identical srctestjavascriptprotractor.conf.js
yarn install v0.20.3
[1/4] Resolving packages...
success Already up-to-date.
$ webdriver-manager update && yarn run webpack:build
[11:03:15] I/update - chromedriver: file exists D:Abhimarketsecuritynode_modu
leswebdriver-managerseleniumchromedriver_2.27.zip
[11:03:15] I/update - chromedriver: unzipping chromedriver_2.27.zip
[11:03:15] I/update - chromedriver: chromedriver_2.27.exe up to date
[11:03:15] I/update - selenium standalone: file exists D:Abhimarketsecurityno
de_moduleswebdriver-managerseleniumselenium-server-standalone-3.1.0.jar
[11:03:15] I/update - selenium standalone: selenium-server-standalone-3.1.0.jar
up to date
[11:03:16] I/update - geckodriver: file exists D:Abhimarketsecuritynode_modul
eswebdriver-managerseleniumgeckodriver-v0.14.0.zip
[11:03:16] I/update - geckodriver: unzipping geckodriver-v0.14.0.zip
[11:03:17] I/update - geckodriver: geckodriver-v0.14.0.exe up to date
yarn run v0.20.3
$ webpack --config webpack/webpack.vendor.js && webpack --config webpack/webpack
.dev.js
Hash: 54e9845b8f5c088d4e4d
Version: webpack 2.2.1
Time: 5413ms
Asset Size Chunks Chunk
Names
674f50d287a8c48dc19ba404d20fe713.eot 166 kB [emitted]
677433a0892aaed7b7d2628c313c9775.svg 6 bytes [emitted]
b06871f281fee6b241d60582ae9369b9.ttf 166 kB [emitted]
af7ae505a9eed503f8b8e6982036873e.woff2 77.2 kB [emitted]
fee66e712a8a08eef5805a46892932ad.woff 98 kB [emitted]
vendor.dll.js 4.81 MB 0 [emitted] [big] vendo
r
[0] ./~/@angular/core/index.js 2.54 kB {0} [built]
[14] ./~/@angular/common/index.js 771 bytes {0} [built]
[102] ./~/@angular/http/index.js 734 bytes {0} [built]
[103] ./~/@angular/platform-browser/index.js 635 bytes {0} [built]
[156] ./~/rxjs/Rx.js 9.58 kB {0} [built]
[436] ./~/@angular/platform-browser-dynamic/index.js 395 bytes {0} [built]
[437] ./~/@angular/router/index.js 909 bytes {0} [built]
[438] ./~/@ng-bootstrap/ng-bootstrap/index.js 4.16 kB {0} [built]
[439] ./~/angular2-cookie/core.js 782 bytes {0} [built]
[440] ./~/angular2-infinite-scroll/angular2-infinite-scroll.js 3.19 kB {0} [bui
lt]
[441] ./~/jquery/dist/jquery.js 267 kB {0} [built]
[442] ./~/ng-jhipster/index.js 2.66 kB {0} [built]
[443] ./~/ng2-webstorage/dist/app.js 2.99 kB {0} [built]
[444] ./src/main/webapp/app/vendor.ts 57 bytes {0} [built]
[862] dll vendor 12 bytes {0} [built]
+ 848 hidden modules
[11:03:26] [write-file-webpack-plugin] options { exitOnErrors: true,
force: false,
log: true,
test: null,
useHashIndex: true }

[at-loader] Using [email protected] from typescript and "tsconfig.json" from D:A
bhimarketsecurity/tsconfig.json.

[at-loader] Checking started in a separate process...

[at-loader] Checking finished with 2 errors
[11:03:42] [write-file-webpack-plugin] compiler.outputFileSystem is "NodeOutputF
ileSystem".
Hash: af8166154280387ddb7d
Version: webpack 2.2.1
Time: 15937ms
[./node_modules/css-loader/index.js!./src/main/webapp/content/css/global.css] ./
~/css-loader!./src/main/webapp/content/css/global.css 5.2 kB {2} [built]
[./node_modules/reflect-metadata/Reflect.ts] ./~/reflect-metadata/Reflect.ts 48.
6 kB {1} [built]
[./node_modules/zone.js/dist/zone.js] ./~/zone.js/dist/zone.js 78.5 kB {1} [buil
t]
[./src/main/webapp/app/app.main.ts] ./src/main/webapp/app/app.main.ts 392 bytes
{0} [built]
[./src/main/webapp/app/app.module.ts] ./src/main/webapp/app/app.module.ts 2.67 k
B {0} [built]
[./src/main/webapp/app/blocks/config/prod.config.ts] ./src/main/webapp/app/block
s/config/prod.config.ts 327 bytes {0} [built]
[./src/main/webapp/app/blocks/config/uib-pagination.config.ts] ./src/main/webapp
/app/blocks/config/uib-pagination.config.ts 1.42 kB {0} [built]
[./src/main/webapp/app/entities/entity.module.ts] ./src/main/webapp/app/entities
/entity.module.ts 1.2 kB {0} [built]
[6] delegated ./node_modules/css-loader/lib/css-base.js from dll-reference ve
ndor 42 bytes {1} [not cacheable] [built]
[7] delegated ./node_modules/@angular/platform-browser/index.js from dll-refe
rence vendor 42 bytes {0} [not cacheable] [built]
[10] delegated ./node_modules/ng2-webstorage/dist/app.js from dll-reference ve
ndor 42 bytes {0} [not cacheable] [built]
[12] delegated ./node_modules/@angular/platform-browser-dynamic/index.js from
dll-reference vendor 42 bytes {0} [not cacheable] [built]
[13] delegated ./node_modules/style-loader/addStyles.js from dll-reference ven
dor 42 bytes {2} [not cacheable] [built]
[./src/main/webapp/app/polyfills.ts] ./src/main/webapp/app/polyfills.ts 106 byte
s {1} [built]
[./src/main/webapp/content/css/global.css] ./src/main/webapp/content/css/global.
css 958 bytes {2} [built]
+ 142 hidden modules

ERROR in ./src/main/webapp/content/images/hipster.png
Module build failed: Error: The system cannot find the path specified.

at notFoundError (D:\Abhi\marketsecurity\node_modules\execa\node_modules\cro

ss-spawnlibenoent.js:11:11)
at verifyENOENT (D:Abhimarketsecuritynode_modulesexecanode_modulescros
s-spawnlibenoent.js:46:16)
at ChildProcess.cp.emit (D:Abhimarketsecuritynode_modulesexecanode_modu
lescross-spawnlibenoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:307-350
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

ERROR in ./src/main/webapp/content/images/hipster2x.png
Module build failed: Error: The system cannot find the path specified.

at notFoundError (D:\Abhi\marketsecurity\node_modules\execa\node_modules\cro

ss-spawnlibenoent.js:11:11)
at verifyENOENT (D:Abhimarketsecuritynode_modulesexecanode_modulescros
s-spawnlibenoent.js:46:16)
at ChildProcess.cp.emit (D:Abhimarketsecuritynode_modulesexecanode_modu
lescross-spawnlibenoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:896-941
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

ERROR in ./src/main/webapp/content/images/logo-jhipster.png
Module build failed: Error: The system cannot find the path specified.

at notFoundError (D:\Abhi\marketsecurity\node_modules\execa\node_modules\cro

ss-spawnlibenoent.js:11:11)
at verifyENOENT (D:Abhimarketsecuritynode_modulesexecanode_modulescros
s-spawnlibenoent.js:46:16)
at ChildProcess.cp.emit (D:Abhimarketsecuritynode_modulesexecanode_modu
lescross-spawnlibenoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
@ ./~/css-loader!./src/main/webapp/app/layouts/navbar/navbar.css 6:1683-1735
@ ./src/main/webapp/app/layouts/navbar/navbar.css
@ ./src/main/webapp/app/layouts/navbar/navbar.component.ts
@ ./src/main/webapp/app/layouts/index.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

ERROR in [at-loader] srcmainwebappappsharedloginlogin.service.ts:16:18
TS2339: Property 'authServerProvider' does not exist on type 'LoginService'.

ERROR in [at-loader] srcmainwebappappsharedloginlogin.service.ts:30:14
TS2339: Property 'authServerProvider' does not exist on type 'LoginService'.

Child html-webpack-plugin for "index.html":
[./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.ht
ml] ./~/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html 1.17 kB {
0} [built]
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this
command.
Error jhipster --skip-server

ERROR! yarn install failed.

JHipster Version(s)

v4.0.5

JHipster configuration

{
"generator-jhipster": {
"clientFramework": "angular2",
"useSass": false,
"clientPackageManager": "yarn",
"jhipsterVersion": "4.0.5",
"applicationType": "monolith",
"baseName": "MarketSecurity",
"testFrameworks": [
"protractor"
],
"jhiPrefix": "jhi",
"skipServer": true,
"enableTranslation": false
}
}

Browsers and Operating System

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode, sharing)

git version 2.10.1.windows.1

node: v6.9.5

npm: 4.1.2

yeoman: 1.8.5

yarn: 0.20.3

~~~

@Abhi365 2 remarks:

  • you used --skip-server option, have you checked the images exist after generation?
  • there are 2 compilation errors in login.service.ts which could be explained by no authentication type selected in your .yo-rc.json

Hi @Abhi365 , I got the same issue in JHipster v4.0.6 on windows 10, have you solved it?

@TonyLuo are you sure you are in same conditions? Please show your .yo-rc.json file.

I didn't change anything in .yo-rc.json, it is same as it generated:

~
{
"generator-jhipster": {
"jhipsterVersion": "4.0.6",
"baseName": "myApp",
"packageName": "com.mycompany.myapp",
"packageFolder": "com/mycompany/myapp",
"serverPort": "8080",
"authenticationType": "jwt",
"hibernateCache": "ehcache",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "mysql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSocialSignIn": false,
"jwtSecretKey": "e081f101088a12cb6fa174f1acf26614f2f58410",
"clientFramework": "angular2",
"useSass": false,
"clientPackageManager": "yarn",
"applicationType": "monolith",
"testFrameworks": [],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "zh-cn",
"languages": [
"zh-cn",
"en"
]
}
}
~

@TonyLuo this is not about changing your .yo-rc.json, it's just to compare your configurations and yours is completely different from @Abhi365 which uses no authentication type and --skip-server. Your config looks more like the one from @guayeguaye . So we could have 2 dfferent issues here and we need to reproduce.

Is it related to the windows OS? The same configuration works well in macbook...

I'm having the same problem with this yo-rc.json file

{
  "generator-jhipster": {
    "jhipsterVersion": "4.0.6",
    "baseName": "eventmanager",
    "packageName": "com.equifax.eventmanager",
    "packageFolder": "com/equifax/eventmanager",
    "serverPort": "8080",
    "authenticationType": "session",
    "hibernateCache": "no",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "mysql",
    "searchEngine": "elasticsearch",
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "rememberMeKey": "0efcd5677c4fb6bb701d4251b1fcc8e06c11ce55",
    "clientFramework": "angular2",
    "useSass": true,
    "clientPackageManager": "yarn",
    "applicationType": "monolith",
    "testFrameworks": [
      "gatling",
      "cucumber",
      "protractor"
    ],
    "jhiPrefix": "jhi",
    "enableTranslation": true,
    "nativeLanguage": "en",
    "languages": [
      "en",
      "es"
    ]
  }
}

@TonyLuo @dylan0d : I'm pretty sure there is something which doesn't work well, but without information and instructions to reproduce, how can we help ?

So it's on Windows, OK, but what is your version of Node ? Yarn ?
When ? After generating the project with yo jhipster ? After your build ? With ./mvnw package -Pprod ? With yarn run webpack:build ?

Do you have the last error ERROR in [at-loader] src\main\webapp\app\shared\login\login.service.ts:16:18 from @Abhi365 or it's the initial stacktrace at notFoundError (D:\demo\node_modules\execa\node_modules\cross-spawn\lib\en oent.js:11:11 ?

Did you try to delete your node_modules and reinstall it ?

If you don't help us with information to reproduce, we can't help you back.

Sorry, I'm relatively new to all this.
Node js: 7.4.0
Yarn 0.19.1
Windows 7

This occurs on the first time yo jhipster is run, and the error is the second one you mentioned:
at notFoundError (D:\demo\node_modules\execa\node_modules\cross-spawn\lib\en oent.js:11:11 ?

What node_modules folder do you recommend deleting? There's about a million on my computer and it took me a long time to configure the proxy settings so I don't want to delete something I don't have to.

Please let me know if there's any more info you need

Reading some issue about this error, it seems to be a problem when installing your node_modules libraries.
Try to delete your local node_modules of your project, then retry to launch yarn install

No joy with that either
Here's my full error message if it helps.
The path is valid, I checked it manually

ERROR in ./src/main/webapp/content/images/hipster.png
Module build failed: Error: The system cannot find the path specified.


    at notFoundError (C:\Users\dxo32\URA\event\node_modules\execa\node_modules\c
ross-spawn\lib\enoent.js:11:11)
    at verifyENOENT (C:\Users\dxo32\URA\event\node_modules\execa\node_modules\cr
oss-spawn\lib\enoent.js:46:16)
    at ChildProcess.cp.emit (C:\Users\dxo32\URA\event\node_modules\execa\node_mo
dules\cross-spawn\lib\enoent.js:33:19)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
 @ ./~/css-loader!./~/sass-loader/lib/loader.js!./src/main/webapp/app/home/home.
scss 6:297-340
 @ ./src/main/webapp/app/home/home.scss
 @ ./src/main/webapp/app/home/home.component.ts
 @ ./src/main/webapp/app/home/index.ts
 @ ./src/main/webapp/app/home/home.module.ts
 @ ./src/main/webapp/app/app.module.ts
 @ ./src/main/webapp/app/app.main.ts

ERROR in ./src/main/webapp/content/images/hipster2x.png
Module build failed: Error: The system cannot find the path specified.

    at notFoundError (C:\Users\dxo32\URA\event\node_modules\execa\node_modules\c
ross-spawn\lib\enoent.js:11:11)
    at verifyENOENT (C:\Users\dxo32\URA\event\node_modules\execa\node_modules\cr
oss-spawn\lib\enoent.js:46:16)
    at ChildProcess.cp.emit (C:\Users\dxo32\URA\event\node_modules\execa\node_mo
dules\cross-spawn\lib\enoent.js:33:19)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
 @ ./~/css-loader!./~/sass-loader/lib/loader.js!./src/main/webapp/app/home/home.
scss 6:825-870
 @ ./src/main/webapp/app/home/home.scss
 @ ./src/main/webapp/app/home/home.component.ts
 @ ./src/main/webapp/app/home/index.ts
 @ ./src/main/webapp/app/home/home.module.ts
 @ ./src/main/webapp/app/app.module.ts
 @ ./src/main/webapp/app/app.main.ts

ERROR in ./src/main/webapp/content/images/logo-jhipster.png
Module build failed: Error: The system cannot find the path specified.

    at notFoundError (C:\Users\dxo32\URA\event\node_modules\execa\node_modules\c
ross-spawn\lib\enoent.js:11:11)
    at verifyENOENT (C:\Users\dxo32\URA\event\node_modules\execa\node_modules\cr
oss-spawn\lib\enoent.js:46:16)
    at ChildProcess.cp.emit (C:\Users\dxo32\URA\event\node_modules\execa\node_mo
dules\cross-spawn\lib\enoent.js:33:19)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
 @ ./~/css-loader!./~/sass-loader/lib/loader.js!./src/main/webapp/app/layouts/na
vbar/navbar.scss 6:1531-1583
 @ ./src/main/webapp/app/layouts/navbar/navbar.scss
 @ ./src/main/webapp/app/layouts/navbar/navbar.component.ts
 @ ./src/main/webapp/app/layouts/index.ts
 @ ./src/main/webapp/app/app.module.ts
 @ ./src/main/webapp/app/app.main.ts
Child html-webpack-plugin for "index.html":
    [./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.ht
ml] ./~/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html 1.22 kB {
0} [built]
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this
command.

npm 4.1.2
node v6.9.5
yarn v0.19.1
windows 10

I have deleted local node_modules and try yarn install, here is the error message:

[4/4] Building fresh packages...
$ node node_modules/pngquant-bin/lib/install.js && node node_modules/phantomjs-prebuilt/install.js && yarn run webpack:build
  ‼ unable to verify the first certificate
  ‼ pngquant pre-build test failed
  i compiling from source
  × RequestError: pngquant failed to build, make sure that libpng-dev is installed
    at ClientRequest.<anonymous> (D:\dev\jhipster\myApp\node_modules\got\index.js:74:21)
    at ClientRequest.g (events.js:291:16)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at TLSSocket.socketErrorListener (_http_client.js:310:9)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:188:7)
    at emitErrorNT (net.js:1278:8)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
Found PhantomJS at D:\dev\jhipster\myApp\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe ...verifying
PhantomJS is previously installed at D:\dev\jhipster\myApp\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe


[./src/main/webapp/content/css/global.css] ./src/main/webapp/content/css/global.css 950 bytes {2} [built]
    + 152 hidden modules

ERROR in ./src/main/webapp/content/images/logo-jhipster.png
Module build failed: Error: ϵͳ�Ҳ���ָ����·����

    at notFoundError (D:\dev\jhipster\myApp\node_modules\execa\node_modules\cross-spawn\lib\enoent.js:11:11)
    at verifyENOENT (D:\dev\jhipster\myApp\node_modules\execa\node_modules\cross-spawn\lib\enoent.js:46:16)
    at ChildProcess.cp.emit (D:\dev\jhipster\myApp\node_modules\execa\node_modules\cross-spawn\lib\enoent.js:33:19)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
 @ ./~/css-loader!./src/main/webapp/app/layouts/navbar/navbar.css 6:1586-1638
 @ ./src/main/webapp/app/layouts/navbar/navbar.css
 @ ./src/main/webapp/app/layouts/navbar/navbar.component.ts
 @ ./src/main/webapp/app/layouts/index.ts
 @ ./src/main/webapp/app/app.module.ts
 @ ./src/main/webapp/app/app.main.ts

is it caused by OS language? My windows 10 default language is Chinese...

Look at the code of the failing script, try running it in debug, maybe you'll find why it fails:

https://github.com/imagemin/pngquant-bin/blob/master/lib/install.js

Also are you sure pngquant does not work, have you tried running it, aybe the postinstall script is wrong.

I installed libpng-dev manually, the following error still there

notFoundError (D:devjhipstermyAppnode_modulesexecanode_modulescross-spawnlibenoent.js:11:11

I even tried to do it with npm
using yo jhipster --skip-server --npm

still got error

~~~
ERROR in ./src/main/webapp/content/images/hipster.png
Module build failed: Error: The system cannot find the path specified.

at notFoundError (D:\Abhi\jhipster4-ng\node_modules\execa\node_modules\cross

-spawnlibenoent.js:11:11)
at verifyENOENT (D:Abhijhipster4-ngnode_modulesexecanode_modulescross-
spawnlibenoent.js:46:16)
at ChildProcess.cp.emit (D:Abhijhipster4-ngnode_modulesexecanode_module
scross-spawnlibenoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:307-350
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

ERROR in ./src/main/webapp/content/images/hipster2x.png
Module build failed: Error: The system cannot find the path specified.

at notFoundError (D:\Abhi\jhipster4-ng\node_modules\execa\node_modules\cross

-spawnlibenoent.js:11:11)
at verifyENOENT (D:Abhijhipster4-ngnode_modulesexecanode_modulescross-
spawnlibenoent.js:46:16)
at ChildProcess.cp.emit (D:Abhijhipster4-ngnode_modulesexecanode_module
scross-spawnlibenoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
@ ./~/css-loader!./src/main/webapp/app/home/home.css 6:896-941
@ ./src/main/webapp/app/home/home.css
@ ./src/main/webapp/app/home/home.component.ts
@ ./src/main/webapp/app/home/index.ts
@ ./src/main/webapp/app/home/home.module.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

ERROR in ./src/main/webapp/content/images/logo-jhipster.png
Module build failed: Error: The system cannot find the path specified.

at notFoundError (D:\Abhi\jhipster4-ng\node_modules\execa\node_modules\cross

-spawnlibenoent.js:11:11)
at verifyENOENT (D:Abhijhipster4-ngnode_modulesexecanode_modulescross-
spawnlibenoent.js:46:16)
at ChildProcess.cp.emit (D:Abhijhipster4-ngnode_modulesexecanode_module
scross-spawnlibenoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
@ ./~/css-loader!./src/main/webapp/app/layouts/navbar/navbar.css 6:1683-1735
@ ./src/main/webapp/app/layouts/navbar/navbar.css
@ ./src/main/webapp/app/layouts/navbar/navbar.component.ts
@ ./src/main/webapp/app/layouts/index.ts
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts

ERROR in [at-loader] srcmainwebappappsharedloginlogin.service.ts:16:18
TS2339: Property 'authServerProvider' does not exist on type 'LoginService'.

ERROR in [at-loader] srcmainwebappappsharedloginlogin.service.ts:30:14
TS2339: Property 'authServerProvider' does not exist on type 'LoginService'.

Child html-webpack-plugin for "index.html":
[./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.ht
ml] ./~/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html 1.16 kB {
0} [built]

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\abhishba\AppDat
a\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "webpack:build"
npm ERR! node v6.9.5
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] webpack:build: webpack --config webpack/webpack.vend or.js && webpack --config webpack/webpack.dev.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] webpack:build script 'webpack --config
webpack/webpack.vendor.js && webpack --config webpack/webpack.dev.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng-jhipster package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack --config webpack/webpack.vendor.js && webpack --config webp
ack/webpack.dev.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng-jhipster
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng-jhipster
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:UsersabhishbaAppDataRoamingnpm-cache_logs2017-02-24T12_18_
17_169Z-debug.log

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modulesch
okidarnode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm WARN @angular/[email protected] requires a peer of @angular/[email protected]
but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but
none was installed.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\abhishba\AppDat
a\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.9.5
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] postinstall: webdriver-manager update && npm run web pack:build
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'webdriver-manager u
pdate && npm run webpack:build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng-jhipster package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webdriver-manager update && npm run webpack:build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng-jhipster
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng-jhipster
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:UsersabhishbaAppDataRoamingnpm-cache_logs2017-02-24T12_18_
17_343Z-debug.log

Client application generated successfully.

Start your Webpack development server with:
npm start

~~~

@Abhi365, I reproduced your issue with your .yo-rc.json and yo jhipster --skip-server, it is not related with this issue so please open a new issue if you feel it must be fixed.

The issue is a compilation error in login.service.ts because AuthServerProvider is missing and has not been generated. This is not surprising because you used --skip-server option so you were not asked about the authentication scheme and so the client generator has no way to know how to generate AuthServerProvider and probably other authentication code.

I tried to add "authenticationType": "jwt", to .yo-rc.json but it did not help.

So either, we consider your use case as a corner case that we don't support or we consider authentication type question should be asked when using --skip-server and related code should be generated. The discussion is open.

First, please open a new issue so that we don't pollute this one anymore.

@Abhi365 @gmarziou while using skip-server you need to provide the required option via commandline params as documented in Tips section of https://jhipster.github.io/creating-an-app/
There is a flag to provide auth option if you use the client sub gen directly

I always forgot about these options :) anyway I tried yo jhipster:client --auth=jwt and got more compilation errors.

@gmarziou yes possible bcoz these are largely untested and advanced use cases

@TonyLuo I could not reproduce your issue with your .yo-rc.json file. My env is Windows 10 Pro (French), node 6.9.5 and yarn 0.20.3, so I'm sorry but you're on your own as it seeems to depend on your environment

@dylan0d I could not reproduce your issue with your .yo-rc.json file. My env is Windows 10 Pro (French), node 6.9.5 and yarn 0.20.3, so I'm sorry but you're on your own as it seeems to depend on your environment

@gmarziou thanks so much for trying it. it seems a common issue using webpack:
https://github.com/react-boilerplate/react-boilerplate/issues/769

One hint maybe, when you look at https://github.com/imagemin/pngquant-bin/blob/master/lib/index.js

You can see that the URL to the executable for Windows will be computed as:

https://raw.github.com/imagemin/pngquant-bin/v3.1.1/vendor/win/pngquant.exe

but if you use a browser and navigate to the same file you see that URL is:

https://github.com/imagemin/pngquant-bin/blob/v3.1.1/vendor/win/pngquant.exe?raw=true

Both URLs give same result in browser, I don't know if it's the same in node script.

install.js just tries to run pngquant.exe --version to test that it works.
When I do the same, I get:

pngquant.exe --version
2.4.0 (April 2015)

There is a pending pull request to update the windows binary: https://github.com/imagemin/pngquant-bin/pull/55

pngquant.exe --version
2.8.1 (December 2016)

So maybe you could try to edit your package.json and add a dep on pngquant-bin with a github URL

"pngquant-bin": "git+https://github.com/caub/pngquant-bin.git",

The more I investigate this issue , the less I'm convinced about the benefits of using image-webpack-loader, it seems to depend too much on dependencies which are difficult to build on all platforms especially OSX and Windows. All this stuff just to optimize images that may be have already been optimized by a graphist using dedicated tools.... 😭

Personally, I think that we should get rid of this and move it to an optional module, the user experience is just too frustrating and support is too complex.

What do you think @jhipster/developers ?

@gmarziou I can generate a project fine when I choose angular 1.x instead of 2.x so I'll just stick with that for now, thanks for trying anyway :)

@gmarziou : agree with you

@gmarziou 100% agree. The more dependencies, the more risks need to take

Well I also found that yarn on Windows has some problems with native node modules requiring node-gyp. For instance, I was unable to build jhipster-registry with yarn, I had to use npm to get it working.

@jdubois @deepu105 I run into the same issue on MacOS as well. I think this ticket should be reopened and addressed as @gmarziou said (Make it optional). @
yo-rc.txt

Issue solved by deleting node_modules and running again yarn install.

Today I tried a brand new 'yo jhipster:client' on the latest JHipster. Angular 4 ... and got:

$ ngc -p tsconfig-aot.json Failed on type {"filePath":"/Users/ndjordjevic/IdeaProjects/jh-client/src/main/webapp/app/shared/login/login.service.ts","name":"LoginService","members":[]} with error Error: Error encountered resolving symbol values statically. Could not resolve type AuthServerProvider (position 12:37 in the original .ts file), resolving symbol LoginService in /Users/ndjordjevic/IdeaProjects/jh-client/src/main/webapp/app/shared/login/login.service.ts Error: Error encountered resolving symbol values statically. Could not resolve type AuthServerProvider (position 12:37 in the original .ts file), resolving symbol LoginService in /Users/ndjordjevic/IdeaProjects/jh-client/src/main/webapp/app/shared/login/login.service.ts at positionalError (/Users/ndjordjevic/IdeaProjects/jh-client/node_modules/@angular/compiler/bundles/compiler.umd.js:23471:35) at simplifyInContext (/Users/ndjordjevic/IdeaProjects/jh-client/node_modules/@angular/compiler/bundles/compiler.umd.js:23314:27) at StaticReflector.simplify (/Users/ndjordjevic/IdeaProjects/jh-client/node_modules/@angular/compiler/bundles/compiler.umd.js:23328:13) at StaticReflector.parameters (/Users/ndjordjevic/IdeaProjects/jh-client/node_modules/@angular/compiler/bundles/compiler.umd.js:22855:65) at CompileMetadataResolver._getDependenciesMetadata (/Users/ndjordjevic/IdeaProjects/jh-client/node_modules/@angular/compiler/bundles/compiler.umd.js:14292:71) at CompileMetadataResolver._getTypeMetadata (/Users/ndjordjevic/IdeaProjects/jh-client/node_modules/@angular/compiler/bundles/compiler.umd.js:14217:26) at CompileMetadataResolver._getInjectableMetadata (/Users/ndjordjevic/IdeaProjects/jh-client/node_modules/@angular/compiler/bundles/compiler.umd.js:14203:21) at CompileMetadataResolver.getProviderMetadata (/Users/ndjordjevic/IdeaProjects/jh-client/node_modules/@angular/compiler/bundles/compiler.umd.js:14492:40) at /Users/ndjordjevic/IdeaProjects/jh-client/node_modules/@angular/compiler/bundles/compiler.umd.js:14420:49 at Array.forEach (native) Compilation failed

deleting node_modules didn't help.

@ndjordjevic You need to pass the options to your app if you want to use yo jhipster:client directly.

Because you did not specify which authentication type you want with --auth option.
See the doc or run yo jhipster:client --help.
So for JWT, you should run: yo jhipster:client --auth=jwt
http://stackoverflow.com/a/42723044/3737815

It works. Thanks a lot @ruddell.
Just wonder why the options like: dev-db, db, hb-cache ... etc... exist in jhipster:client generator since it should generate only a client and those are related to server, if I'm not wrong...
Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DanielFran picture DanielFran  Â·  3Comments

lsadehaan picture lsadehaan  Â·  3Comments

marcelinobadin picture marcelinobadin  Â·  3Comments

RizziCR picture RizziCR  Â·  3Comments

chegola picture chegola  Â·  4Comments