Debugger listening on ws://127.0.0.1:9229/9bc9e5b4-c226-41c5-9d9b-d862bf442fee
For help, see: https://nodejs.org/en/docs/inspector
F:\data\project\bbs-go\site\node_modules.bin\nuxt:2
basedir=(dirname "(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
at Module._compile (internal/modules/cjs/loader.js:895:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bbs-go-site@1.0.0 debug: node --inspect node_modules/.bin/nuxt
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bbs-go-site@1.0.0 debug 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:\Users\linlong\AppData\Roaming\npm-cache_logs\2020-01-04T07_55_26_200Z-debug.log
可以调试的
是的,程序员必须学会markdown
多学习一下mark语法吧
##刚试了一下
错误如下:
发截图你可以熟悉一下markdown语法。评论是支持markdown的。
git clone下来没做什么的修改,我不知道是什么 原因照成的这样?运行其他script可以正常 例如npm run dev
不知道如何发送截图?尴尬了
报错内容如下:
F:\data\project\bbs-go\site>npm run debug
Debugger listening on ws://127.0.0.1:9229/9bc9e5b4-c226-41c5-9d9b-d862bf442fee
For help, see: https://nodejs.org/en/docs/inspector
F:\data\project\bbs-go\site\node_modules.bin\nuxt:2
basedir=(dirname "(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
at Module._compile (internal/modules/cjs/loader.js:895:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bbs-go-site@1.0.0 debug:
node --inspect node_modules/.bin/nuxt
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bbs-go-site@1.0.0 debug 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:\Users\linlong\AppData\Roaming\npm-cache_logs\2020-01-04T07_55_26_200Z-debug.log
1. 首先执行下面命令启动服务
2. 使用chrome打开网页
使用chrome打开网页之后,打开控制台,然后点击下图所示的按钮,连接
DevTools
。成功连接
DevTools
会打开下图所示页面。3. 添加断点
去你想要添加断点的地方加上
debugger
,如下图所示:然后刷新页面,当代码执行到
debugger
位置的时候就能够进入断点。好的,幸苦大佬了,祝你完得开心~
可以调试的,明天给你回帖告诉你方法,现在在外面玩,没电脑。