我一直在尝试运行此脚本时遇到此错误 不知道为什么。我假设语法中的某些内容与我正在运行的节点的版本无关
我正在通过
运行它npm start
我在同一个文件中有配置文件,它正在运行monitor.js。 节点版本为4.1.2 配置文件的名称是config.json
{
"interval": 60000,
"serverPort": 1337,
"autoRetryOnCrash": true,
"noImageURL": "http://i.imgur.com/MdsG0Po.png",
"notify": {
"new": false,
"restocks": false,
"keywords": true
},
"slackBot": {
"active": false,
"token": "token goes here",
"channel": "monitor",
"settings": {
"username": "ShopifyMonitor",
"icon_url": "http://i.imgur.com/zks3PoZ.png"
}
},
"twitter": {
"active": false,
"encodeImages": false,
"consumer_key": "",
"consumer_secret": " ",
"access_token": "",
"access_token_secret": ""
},
"sites": [
"https://shop-usa.palaceskateboards.com/sitemap_products_1.xml",
"http://kithnyc.com/sitemap_products_1.xml"
],
"keywords": [
"nmd",
"ultraboost",
"yeezy"
]
}