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.

Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, scandir '**\node_modules\node-sass\vendor'

See original GitHub issue

Hi, There was an error occured in my chrome on windows 10 x64 when I run yarn start successfully.

Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, scandir 'H:\playground\angular\manager-demo\node_modules\node-sass\vendor' at Object.fs.readdirSync (fs.js:909:18) at Object.getInstalledBinaries (H:\playground\angular\manager-demo\node_modules\node-sass\lib\extensions.js:124:13) but the folder vendor and the binary file binding.node did exist.

steps to reproduce the error

just follow the JHipster Quick Start and choose sass configuration yarn start

JHipster Version(s)

JHipster version: 4.5.6

JHipster Version(s)
mlmanager@0.0.0 H:\playground\angular\manager-demo
`-- generator-jhipster@4.5.6

JHipster configuration, a .yo-rc.json file generated in the root folder
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.memorieslab.manager",
      "nativeLanguage": "zh-cn"
    },
    "jhipsterVersion": "4.5.6",
    "baseName": "mlmanager",
    "packageName": "com.memorieslab.manager",
    "packageFolder": "com/memorieslab/manager",
    "serverPort": "8080",
    "authenticationType": "session",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "mysql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "rememberMeKey": "b058ca73a674ccd847332b604534c0fcaa35b68a",
    "clientFramework": "angular2",
    "useSass": true,
    "clientPackageManager": "yarn",
    "applicationType": "monolith",
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "enableTranslation": true,
    "nativeLanguage": "zh-cn",
    "languages": [
      "zh-cn",
      "zh-tw",
      "en",
      "fr"
    ]
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory

ls: no such file or directory: .jhipster/*.json

Browsers and Operating System

java version “1.8.0_101” Java™ SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot™ 64-Bit Server VM (build 25.101-b13, mixed mode)

git version 2.13.0.windows.1

node: v8.1.3

npm: 5.0.3

yeoman: 1.8.5

yarn: 0.27.5

Browsers and Operating System

browser: chrome x64 59.0.3071.86 os: windows 10 x64

  • [x ] Checking this box is mandatory (this is just to show you read everything)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:30 (15 by maintainers)

github_iconTop GitHub Comments

119reactions
lmcardlecommented, Jul 12, 2017

@lancurtis run npm rebuild node-sass

14reactions
jduboiscommented, Jul 4, 2017

Oh sorry I read too fast, I thought it also failed on your Macbook Pro. Then this is just a node-sass installation issue on Windows -> have a look at https://github.com/sass/node-sass there are detailed instructions on this. It’s quite annoying to use on Windows as that’s a native package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleBuildError: Module build failed: Error: ENOENT
Code answers related to "Module build failed: ModuleBuildError: Module build failed: Error: ENOENT: no such file or directory, scandir ...
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