Closed ziyouchutuwenwu closed 1 year ago
node版本切换16试试 ~
装完16.0.0和16.2.1也都不行,这是16.0.0的结果
tiny init
/home/mmc/.nvm/versions/node/v16.0.0/lib/node_modules/@opentiny/cli/node_modules/ping/lib/parser/mac.js:42
this._times.push(parseFloat(match[1], 10));
^
TypeError: Cannot read property '1' of null
at LinuxParser.MacParser._processBody (/home/mmc/.nvm/versions/node/v16.0.0/lib/node_modules/@opentiny/cli/node_modules/ping/lib/parser/mac.js:42:42)
at LinuxParser._processBody (/home/mmc/.nvm/versions/node/v16.0.0/lib/node_modules/@opentiny/cli/node_modules/ping/lib/parser/linux.js:45:38)
at LinuxParser.parser.eat (/home/mmc/.nvm/versions/node/v16.0.0/lib/node_modules/@opentiny/cli/node_modules/ping/lib/parser/base.js:133:14)
at /home/mmc/.nvm/versions/node/v16.0.0/lib/node_modules/@opentiny/cli/node_modules/underscore/underscore-node-f.cjs:716:19
at Function.each (/home/mmc/.nvm/versions/node/v16.0.0/lib/node_modules/@opentiny/cli/node_modules/underscore/underscore-node-f.cjs:1323:7)
at ChildProcess.<anonymous> (/home/mmc/.nvm/versions/node/v16.0.0/lib/node_modules/@opentiny/cli/node_modules/ping/lib/ping-promise.js:83:12)
at Object.onceWrapper (node:events:472:26)
at ChildProcess.emit (node:events:365:28)
at maybeClose (node:internal/child_process:1067:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
能不能试下 手动升级ping包 /usr/local/node_modules/@opentiny/cli 执行npm i ping
还是报错,步骤如下
运行
tiny-cli暂时不支持Linux系统 可以在windows和mac使用
ok
Version
tiny v1.1.0
node-version
v18.16.0
Link to minimal reproduction
No response
Step to reproduce
os
nvm
git
install cli
What is expected
tiny init works fine
What is actually happening
Any additional comments (optional)
No response