likun7981 / hlink

批量、快速硬链工具(The batch, fast hard link toolkit)
https://hlink.likun.me
MIT License
641 stars 59 forks source link

创建硬链出现错误信息 #92

Closed gary20222 closed 2 years ago

gary20222 commented 2 years ago

大家好,机子群晖NAS,系统DSM7.1,Package center安装node.js v16, 然后ssh root 权限 npm i -g hlink 安装hlink, 过程中出现以下提示: npm WARN deprecated @types/responselike@3.0.0: This is a stub types definition. responselike provides its own type definitions, so you do not need this installed.

changed 397 packages, and audited 398 packages in 2m

85 packages are looking for funding run npm fund for details

4 moderate severity vulnerabilities

To address all issues (including breaking changes), run: npm audit fix --force

Run npm audit for details.

然后按照提示试了以下命令: root@zjwdiskstation:~# npm fund root

root@zjwdiskstation:~# npm audit fix --force

npm WARN using --force Recommended protections disabled. npm ERR! code ENOLOCK npm ERR! audit This command requires an existing lockfile. npm ERR! audit Try creating one first with: npm i --package-lock-only npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-09-08T11_17_44_236Z-debug-0.log

使用时出现以下错误: root@zjwdiskstation:~# hlink /volume2/movies /volume2/Downloads/movies Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/volume2/movies' is not supported resolving ES modules imported from /usr/local/lib/node_modules/hlink/node_modules/@hlink/core/lib/config/get.js at new NodeError (node:internal/errors:371:5) at finalizeResolution (node:internal/modules/esm/resolve:412:17) at moduleResolve (node:internal/modules/esm/resolve:932:10) at defaultResolve (node:internal/modules/esm/resolve:1044:11) at ESMLoader.resolve (node:internal/modules/esm/loader:422:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40) at ESMLoader.import (node:internal/modules/esm/loader:276:22) at importModuleDynamically (node:internal/modules/esm/translators:111:35) at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14) at Object.get (file:///usr/local/lib/node_modules/hlink/node_modules/@hlink/core/lib/config/get.js:10:76

WebUI都试了,不知道是哪里出了问题,google baidu都没找到解决办法,请大家帮忙解决一下,感谢!

likun7981 commented 2 years ago

能用webui就用webui,现在命令行不支持这样使用了,好好看下文档,https://hlink.likun.me/command/

gary20222 commented 2 years ago

用WebUI成功了,谢谢