在我的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(); });
});
}
}
答案 0 :(得分:1)
.csslintrc文件似乎在您的项目文件夹中不可用。您可以从master分支重新下载此文件,然后重试。