npm 开始返回错误

npm start returning an error

我在 mean.js 应用程序 运行 'npm start' 时遇到错误。我将粘贴终端输出和文件中的错误代码。

航站楼:

/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:(第10行代码错误)

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(); });
  });
}

}

您的项目文件夹中似乎没有 .csslintrc 文件。你可以从主分支重新下载这个然后再试一次。