-1
我想RUNT在此URL「https://github.com/gautam1858/sd.js」當我使用「節點filename.js」運行js文件,我收到以下錯誤發現這個github上的代碼的Javascript節點mainframe.js
/home/gautam/Desktop/sd.js-master/sd.js:5286
})(window, document, 'Hammer');
^
ReferenceError: window is not defined
at /home/gautam/Desktop/sd.js-master/sd.js:5286:4
at defined (/home/gautam/Desktop/sd.js-master/sd.js:5:21)
at Object.<anonymous> (/home/gautam/Desktop/sd.js-master/sd.js:7:2)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
如何解決這個問題?
我試過但沒有工作 –