install failed on Mac ~-~
RayJune opened this issue · 2 comments
RayJune commented
like this
➜ ~ npm install --save trash
npm WARN saveError ENOENT: no such file or directory, open '/Users/rayjune/package.json'
/Users/rayjune
└── trash@4.0.1
npm WARN enoent ENOENT: no such file or directory, open '/Users/rayjune/package.json'
npm WARN rayjune No description
npm WARN rayjune No repository field.
npm WARN rayjune No README data
npm WARN rayjune No license field.
SamVerschueren commented
You are trying one of the following things
- You want to install it globally so that you can run
trash
in your command line - You want to install it inside a project so that you can use the
trash
API
In case of 1
, you should install trash-cli.
In case of 2
, you ran the npm
command inside your home directory which doesn't have a package.json
.
RayJune commented
aha ~! Thank you very very much.