npm - zsh:权限被拒绝:在 npm 链接之后
问题描述
我正在尝试运行基本的 CLI 命令,但在npm link
得到:
zsh: permission denied: testcom
文件myfile包含:
#!/usr/local/bin/ node
console.log('Hello!')
运行ls -alh
:
-rwxr-xr-x 1 markhorton staff 46B 4 Dec 20:37 myfile
包.json:
{
"name": "katya",
"version": "1.0.0",
"description": "",
"main": "index.js",
"bin": {
"testcom": "myfile"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
但是,运行testcom
表示权限被拒绝。
非常感谢任何帮助或建议。非常感谢,卡佳
解决方案
推荐阅读
- uitabbarcontroller - Swift 5 中 .XIB 文件中的操作表显示
- python - Monkey Patch 实例方法在 Python 多处理中不起作用
- reactjs - React AWS Amplify S3 Storage.put() No Credentials 错误
- react-native - 为我的组件映射选项卡时无法获取不同的元素
- html - 无法对齐搜索栏旁边的按钮
- mongodb - 如何在mongodb中使用find和exist?
- python - 如何从python中设置的图像中识别CMYK图像
- ios - 无限循环尝试使用 Xcode 11 beta 在 swift 5 中从 xib 创建自定义视图
- c - 对我的代码的任何建议时限裁决
- java - 按属性隔离列表