-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法运行yarn start命令 #302
Comments
遇到跟你一样的问题, run build 和 start 都是 包跟你一样的错误, ENOENT: no such file or directory, open 'C:...\registry.npmmirror.com+markdown-to-html-cli@3.1.6\node_modules\markdown-to-html-cli\package.json' |
@gittig11 @waytoviva 我在 macOS 上没有问题。没有 windows 电脑,没有办法调试,尝试解决方案。 ➜ linux-command git:(master) npm -v
7.23.0
➜ linux-command git:(master) node -v
v14.17.5
➜ linux-command git:(master) rm -rf package-lock.json node_modules
➜ linux-command git:(master) npm i |
@jaywcjlove 找到原因了, lib/index.js 中,应为: // const pkg = fs.readJSONSync(path.resolve(/file:\/\/(.+)\/[^/]/.exec(import.meta.url)[1], '..', 'package.json'));
const pkg = fs.readJSONSync(path.resolve(/file:\/\/\/(.+)\/[^/]/.exec(import.meta.url)[1], '..', 'package.json')); lib/create.js中, let cssStr = fs.readFileSync(path.resolve(/file:\/\/\/(.+)\/[^/]/.exec(import.meta.url)[1], 'styles', 'github.css')).toString();
if (options['github-corners-fork'] && options['github-corners']) {
let cssFork = fs.readFileSync(path.resolve(/file:\/\/\/(.+)\/[^/]/.exec(import.meta.url)[1], 'styles', 'github-fork-ribbon.css')).toString();
cssStr = `${cssStr}${cssFork}`;
} 至于 |
https://nodejs.org/api/esm.html#esm_no_require_exports_module_exports_filename_dirname 我好像找到原因了。
|
安装依赖,运行
yarn start
后,报错:node版本 14.13.1
原因未知...
The text was updated successfully, but these errors were encountered: