install:
npm install [email protected] -g
if I'm only using "npm install tidy-markdown -g", it will issue
node:internal/modules/cjs/loader:1080
throw err;
^
Error: Cannot find module '../lib/language-code-rewrites'
Require stack:
- C:\Users\Administrator\AppData\Roaming\npm\node_modules\tidy-markdown\lib\converters.js
- C:\Users\Administrator\AppData\Roaming\npm\node_modules\tidy-markdown\lib\index.js
- C:\Users\Administrator\AppData\Roaming\npm\node_modules\tidy-markdown\lib\cli.js
- C:\Users\Administrator\AppData\Roaming\npm\node_modules\tidy-markdown\bin\index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:121:18)
at Object.(C:\Users\Administrator\AppData\Roaming\npm\node_modules\tidy-markdown\lib\converters.js:12:23)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\Administrator\AppData\Roaming\npm\node_modules\tidy-markdown\lib\converters.js',
'C:\Users\Administrator\AppData\Roaming\npm\node_modules\tidy-markdown\lib\index.js',
'C:\Users\Administrator\AppData\Roaming\npm\node_modules\tidy-markdown\lib\cli.js',
'C:\Users\Administrator\AppData\Roaming\npm\node_modules\tidy-markdown\bin\index.js'
]
}
tidy-markdown < ./chapter1cn.md > ./chapter1cn_cleaned.md
标签:files,node,markdown,modules,tidy,up,internal,npm From: https://www.cnblogs.com/uceec00/p/17674607.html