You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.
win10 运行 nosmoke -u R3CN70MKHYE -c D:\1_UHome\2_project\9_nosmoke\NoSmoke\demo\crawler.config.yml报错如下:
udid: R3CN70MKHYE
ReferenceError: root is not defined
at NSCrawlerConfig.loadDefault (D:\Programs\nodejs\node_global\node_modules\nosmoke\lib\crawler\config.js:40:3)
at Object. (D:\Programs\nodejs\node_global\node_modules\nosmoke\lib\crawler\index.js:13:15)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at module.exports (D:\Programs\nodejs\node_global\node_modules\nosmoke\lib\nosmoke.js:37:11)
at module.exports.next ()
win10 运行 nosmoke -u R3CN70MKHYE -c D:\1_UHome\2_project\9_nosmoke\NoSmoke\demo\crawler.config.yml报错如下:
udid: R3CN70MKHYE
ReferenceError: root is not defined
at NSCrawlerConfig.loadDefault (D:\Programs\nodejs\node_global\node_modules\nosmoke\lib\crawler\config.js:40:3)
at Object. (D:\Programs\nodejs\node_global\node_modules\nosmoke\lib\crawler\index.js:13:15)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at module.exports (D:\Programs\nodejs\node_global\node_modules\nosmoke\lib\nosmoke.js:37:11)
at module.exports.next ()
lib\crawler\config.js:40:3 这个文件中
NSCrawlerConfig.prototype.loadDefault = function() {
let configFile = path.join(__dirname, '..', '..', 'demo', 'crawler.config.yml');
if (root.cmdArgs && root.cmdArgs.config) {
if (_.isExistedFile(root.cmdArgs.config)) {
configFile = root.cmdArgs.config;
} else {
console.log('invalid config file paths :' + root.cmdArgs.config);
process.exit();
}
}
root 没定义???
The text was updated successfully, but these errors were encountered: