首页 > 解决方案 > 已安装 npm 但找不到命令

问题描述

我正在 Linux Mint 上安装以下软件包

https://github.com/frida/frida-compile

我尝试安装它

~ $ sudo npm install frida-compile
npm WARN saveError ENOENT: no such file or directory, open '/home/david/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/david/package.json'
npm WARN david No description
npm WARN david No repository field.
npm WARN david No README data
npm WARN david No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ frida-compile@5.3.7
updated 1 package in 2.883s
[!] 2 vulnerabilities found [21344 packages audited]
    Severity: 2 Low
    Run `npm audit` for more detail

当我frida-compile在命令行上运行时,我得到

frida-compile: command not found

知道这里有什么问题吗?

我正在运行节点 8.11.1

标签: node.jsnpmnpm-installnode-modules

解决方案


推荐阅读