Error: ENOENT: no such file or directory, scandir

后端 未结 10 1953
误落风尘
误落风尘 2021-01-30 12:40

I scaffold an app using jhipster which is microservice gateway using cassandra db and using maven to build which was building fine after scaffold.i ran gulp command to for the l

相关标签:
10条回答
  • 2021-01-30 12:41

    I sometimes also get this error when starting my gulp server. My workaround is to just run:

    npm rebuild node-sass
    

    And then gulp starts nicely afterward.

    0 讨论(0)
  • 2021-01-30 12:41

    Some files may not be available in the local version of NodeJS, and sometimes NodeJS does not send a message about it. In this case --force is helpful.

    npm install node-sass --force
    

    or

    npm rebuild node-sass --force
    
    0 讨论(0)
  • 2021-01-30 12:47

    The vendor directory is created during npm install. Try deleting your node_modules and running npm install.

    0 讨论(0)
  • 2021-01-30 12:50

    For my case it helps only after doing this command:

    node node_modules/node-sass/scripts/install.js
    

    And then there will be /node_modules/node-sass/vendor folder

    0 讨论(0)
  • 2021-01-30 12:52

    Update your gulp-sass in package.json with new version

    "gulp-sass": "3.1.0" // 3.1.0 or later 
    

    This is the link which i follow https://github.com/dlmanning/gulp-sass/issues/508

    0 讨论(0)
  • 2021-01-30 12:56

    I just fixed this error. It was because I was trying to run the project from the wrong folder.

    0 讨论(0)
提交回复
热议问题