hua1995116 / linec Goto Github PK
View Code? Open in Web Editor NEW:candy:一个高颜值命令行统计代码行数的计数器。(counts lines of code)
License: MIT License
:candy:一个高颜值命令行统计代码行数的计数器。(counts lines of code)
License: MIT License
使用 npm 安装后,使用 linec -o
,报错
internal/fs/utils.js:230
throw err;
^
Error: ENOENT: no such file or directory, open './src/static/template.html'
at Object.openSync (fs.js:457:3)
at Object.readFileSync (fs.js:359:35)
at outputHtml (C:\Users\dy\AppData\Roaming\npm\node_modules\linec\lib\linec.js:348:23)
at linec (C:\Users\dy\AppData\Roaming\npm\node_modules\linec\lib\linec.js:366:18)
at Object.<anonymous> (C:\Users\dy\AppData\Roaming\npm\node_modules\linec\lib\index.js:7:1)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: './src/static/template.html'
}
Just run linec
and then
C:\Users\qin-nz\AppData\Roaming\npm\node_modules\linec\lib\linec.js:196
var colorMax = [maxLine[0].yellow, ('' + maxLine[1]).yellow, ('' + maxLine[2]).yellow, ('' + maxLine[3]).yellow];
^
TypeError: Cannot read property '0' of undefined
at hanldeTable (C:\Users\qin-nz\AppData\Roaming\npm\node_modules\linec\lib\linec.js:196:28)
at linec (C:\Users\qin-nz\AppData\Roaming\npm\node_modules\linec\lib\linec.js:363:21)
at Object.<anonymous> (C:\Users\qin-nz\AppData\Roaming\npm\node_modules\linec\lib\index.js:7:1)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.