javascriptnpmmeanjsnpm-start

npm start returning an error


I am having difficulty with an error when I run 'npm start' on my mean.js application. I will paste both the terminal output and the code from the file with the error.

Terminal:

/Users/developer/dev-projects/Central-Repo/node_modules/rcloader/index.js:39
    if (err) throw err;
             ^

Error: ENOENT: no such file or directory, open '.csslintrc'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! meanjs@0.6.0 start: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the meanjs@0.6.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional 
logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/developer/.npm/_logs/2018-07-24T09_18_22_923Z-debug.log

Index.js: (error in 10th line of code)

var defaultFileGiven = (config.defaultFile !== undefined);
if (defaultFileGiven) {
if (finder.canLoadSync) {
  assign(config, finder.get(config.defaultFile));
} else {
  // push callbacks here that need to wait for config to load
  configPending = [];
  // force the async loader
  finder.get(config.defaultFile, function (err, defaults) {
    if (err) throw err;
    assign(config, defaults);

    // clear the configPending queue
    var cbs = configPending;
    configPending = null;
    cbs.forEach(function (cb) { cb(); });
  });
}

}


Solution

  • It seems .csslintrc file is not available in your project folder. You can re download this from the master branch and try again.