Error: ENOENT: no such file or directory, scandir

后端 未结 10 1960
误落风尘
误落风尘 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:57

    Make sure you have the config.json file. Then do the npm install and npm start.

    This might give this error if you don't have this config file.

    0 讨论(0)
  • 2021-01-30 13:02

    It is a problem with older version of node-sass. It doesn't create vendor folder in node_modules/node-sass. I have updated the version of node-sass and it worked fine for me.

    My older version of node-sass was 3.1.0

    I simply did:

    npm install node-sass@3.7.0

    This should solve your problem as well.

    0 讨论(0)
  • 2021-01-30 13:04

    No need to delete node modules, its because of your sass-loader version is different

    1. Delete package-lock.json
    2. npm uninstall node-sass --save
    3. npm i node-sass --save
    0 讨论(0)
  • 2021-01-30 13:06

    Here's what worked for me

    $npm update
    $npm install
    $node node_modules/node-sass/scripts/install.js
    $npm rebuild node-sass
    
    0 讨论(0)
提交回复
热议问题