Skip to content
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

npx iconfont-init 在win10下 无法运行 报错 #4

Closed
jiangz153202 opened this issue Oct 15, 2019 · 4 comments
Closed

npx iconfont-init 在win10下 无法运行 报错 #4

jiangz153202 opened this issue Oct 15, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@jiangz153202
Copy link

PS D:\gxjzFolder\painterDemo\painter> npx iconfont-init
npx: 1 安装成功,用时 5.933 秒
'prefix' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:\gxjzFolder\painterDemo\painter\node_modules\mini-program-iconfont-cli\commands\createJson.js:13
fs_1.default.copyFileSync(path_1.default.join(__dirname, '../libs/iconfont.json'), targetFile);
^

TypeError: fs_1.default.copyFileSync is not a function
at Object. (D:\gxjzFolder\painterDemo\painter\node_modules\mini-program-iconfont-cli\commands\createJson.js:13:18)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3

node版本 V8.4.0

@fwh1990 fwh1990 added the bug Something isn't working label Oct 15, 2019
@fwh1990
Copy link
Member

fwh1990 commented Oct 15, 2019

fs.copyFileSync 是nodeJs v8.5.0之后的功能,我找下代替方案

@jiangz153202
Copy link
Author

fs.copyFileSync 是nodeJs v8.5.0之后的功能,我找下代替方案

非常感谢 因为在做公司项目 准备上线中 不太想因为升级node环境而搞出幺蛾子 ==

@fwh1990
Copy link
Member

fwh1990 commented Oct 15, 2019

已经发布0.5.5版本。

@jiangz153202
Copy link
Author

已经发布0.5.5版本。

非常感谢 =

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants