Кто-нибудь работает над кодом Visual Studio?У меня проблема с расширением Simple HTML Template.Когда я запускаю его с помощью Node, я получаю такую ошибку:
path.js:28
throw new TypeError('Path must be a string. Received ' + inspect(path));
^
TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.join (path.js:489:7)
at Object.<anonymous> (D:\www\…...\node_modules\sht\lib\cli-watch.js:3:34)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! www-iss@1.0.0 watch-template: `sht-cli-watch ./html` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the www-iss@1.0.0 watch-template 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!
C:\......\_logs\2018-09-16T15_29_15_520Z-debug.log
Что не так?Я не могу найти, где проблема?Кто может мне помочь
Я следовал инструкциям, которые я набрал: . / Node_modules / .bin / sht-cli ./html
даже я пытался добавить некоторые скрипты в пакет.json
{
"scripts": {
"compile-template": "sht-cli ./html",
"watch-template": "sht-cli-watch ./html"
}
}
Вот как выглядит расширение: https://github.com/phonglk/simple-html-template