Learning think.js, summary

Download https://nodejs.org/dist/v10.16.2/node-v10.16.2-win-x64.zip put d under the root extract the
PATH environment variable to add D: \ node-v10.16.2-win -x64

mkdir d:\thinkjs
cd d:\thinkjs

Add domestic mirror
npm install --registry = https://registry.npm.taobao.org

Installation thinkjs
npm install thinkjs

Uninstall thinkjs
npm Uninstall -g thinkjs-cmd

View thinkjs-cli version, 2.2.9
thinkjs -V

View thinkjs version, 3.2.10
npm View thinkjs Version

View node.js version, v10.16.2
the Node -v

Debugging tools
npm install -g node-inspect

New thinjs project
thinkjs project_name demo

cd demo
installation project
thinkjs install

Start project
npm start

Breakpoint debugging
cd Demo
the Node --inspect production.js
then open the Google browser chrome: // inspect
the right side there will be Target .... production.js Remote
File: /// D: /_study_thinkjs_demo_production.js
above not tested by
measuring handy second pro
chrome: // flags / # enable- devtools-experiments start drawing project, select 'Enabled'.
node --inspect production.js page prompts WebSockets request was expected
to open the Google Developer Tools can see the contents, green hexagon shown below, is the node debugging tools
by clicking the green button will automatically open the file name previously entered debugging interface

Guess you like

Origin blog.51cto.com/204222/2430126