Closed caisxg closed 8 months ago
你的执行命令是?
这么快, 感谢, 执行命令
⚡ pnpm run tmp
> js-de-obfuscator@0.3.0 tmp /Users/zsc/Downloads/js-deobfuscator-main
> npx deob tmp/input.js -o tmp
sh: deob: command not found
ELIFECYCLE Command failed.
一样的, 我用最新版,clone 下来, 我啥都没改, 就是测试不通过
请先确保 pnpm i 安装完依赖,这样你在 node_modules/.bin 中就能找到 deob 这个命令,此时在项目根目录下执行 pnpm run tmp 便能够将 tmp/index.js 还原成 output.js
是的, 我使用 pnpm i
这个命令安装, 会弹出如下命令, 我不知道如何解决, 我不懂这个,所以请教一下
⚡ pnpm i
Scope: all 5 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
WARN Failed to create bin at /Users/zsc/Downloads/js-deobfuscator-main/example/node_modules/.bin/deob. ENOENT: no such file or directory, open '/Users/zsc/Downloads/js-deobfuscator-main/packages/deob/dist/cli.js'
WARN Failed to create bin at /Users/zsc/Downloads/js-deobfuscator-main/website/node_modules/.bin/deob. ENOENT: no such file or directory, open '/Users/zsc/Downloads/js-deobfuscator-main/packages/deob/dist/cli.js'
WARN Failed to create bin at /Users/zsc/Downloads/js-deobfuscator-main/node_modules/.bin/deob. ENOENT: no such file or directory, open '/Users/zsc/Downloads/js-deobfuscator-main/node_modules/deob/dist/cli.js'
WARN Failed to create bin at /Users/zsc/Downloads/js-deobfuscator-main/example/node_modules/.bin/deob. ENOENT: no such file or directory, open '/Users/zsc/Downloads/js-deobfuscator-main/example/node_modules/deob/dist/cli.js'
WARN Failed to create bin at /Users/zsc/Downloads/js-deobfuscator-main/website/node_modules/.bin/deob. ENOENT: no such file or directory, open '/Users/zsc/Downloads/js-deobfuscator-main/website/node_modules/deob/dist/cli.js'
WARN 1 other warnings
website postinstall$ nuxt prepare
│ ✔ Types generated in .nuxt
└─ Done in 3.6s
Done in 5.2s
很抱歉,我在 deob 这个子包下没有添加 预脚本,导致安装依赖后没有将产物(dist)构建出来。我发布一个https://github.com/kuizuo/js-deobfuscator/pull/9 来修复它,你直接拉取最新分支,并将node_modules 目录删除后,重新运行命令便可。当 packages/deob下出现 dist,便可执行 deob 命令了。
十分感谢作者的解答, 我已尝试, 可以正常输出了. 谢谢
你好, 根据介绍, 运行失败, 应该是环境安装不对,能帮忙看看吗
````bash WARN Failed to create bin at /Users/zsc/Downloads/js-deobfuscator-main/example/node_modules/.bin/deob. ENOENT: no such file or directory, open '/Users/zsc/Downloads/js-deobfuscator-main/packages/deob/dist/cli.js' WARN Failed to create bin at /Users/zsc/Downloads/js-deobfuscator-main/website/node_modules/.bin/deob. ENOENT: no such file or directory, open '/Users/zsc/Downloads/js-deobfuscator-main/packages/deob/dist/cli.js'