question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build error:The system cannot find the path specified.

See original GitHub issue
  • 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:\demo\node_modules\execa\node_modules\cross-spawn\lib\eno
ent.js:46:16)
    at ChildProcess.cp.emit (D:\demo\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/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:\demo\node_modules\execa\node_modules\cross-spawn\lib\eno
ent.js:46:16)
    at ChildProcess.cp.emit (D:\demo\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/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:\demo\node_modules\execa\node_modules\cross-spawn\lib\eno
ent.js:46:16)
    at ChildProcess.cp.emit (D:\demo\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: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™ SE Runtime Environment (build 1.8.0_91-b14) Java HotSpot™ 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`

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:49 (39 by maintainers)

github_iconTop GitHub Comments

2reactions
gmarzioucommented, Feb 24, 2017

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 ?

1reaction
jduboiscommented, Feb 14, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix "The system cannot find the path specified." Error in ...
It seems this error occurs when you have invalid paths in your PATH environment variable e.g. directories which don't exist anymore. To find...
Read more >
8 Useful Ways to Fix "The System Cannot Find the Path ...
The System Cannot Find the Path Specified; Fix 1. Run an Anti-Virus Scan; Fix 2. Verify Path; Fix 3. Recover Folders or Files;...
Read more >
11 Ways To Fix “The System Cannot Find The Path Specified ...
How to Fix the “System Cannot Find the Path Specified” Error · Check if the Path is Correct · Check Environment Variables ·...
Read more >
What is the reason for the error message "System cannot find ...
Navigate to HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun and clear the values. Also check HKEY_LOCAL_MACHINE\Software\ ...
Read more >
[Solved] The System Can Not Find The Path Specified Error in ...
[Solved] The System Can Not Find The Path Specified Error in Command Prompt · incorrect directory name. 2. · using both javac and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found