Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

files attribute must be specified #30

Closed
fisknils opened this issue May 29, 2018 · 3 comments
Closed

files attribute must be specified #30

fisknils opened this issue May 29, 2018 · 3 comments
Assignees
Labels
bug Something isn't working.

Comments

@fisknils
Copy link
Contributor

fisknils commented May 29, 2018

Hey, I just installed apify-cli using npm -g i apify-cli
I'm running Windows 7 64bit

node -v v9.5.0
npm -v 6.0.0

Whenever I run apify, I get the following error messsage:

(node:9672) Error Plugin: apify-cli: files attribute must be specified in C:\Users\fisknils\AppData\Roaming\npm\node_modules\apify-cli\package.json

I figured it might not be optimized for windows, so I also tried it on a linux box running

node -v v10.1.0
npm -v 6.1.0

But I get the (basically) the same error.

I also tried downgrading, through nvm, to the same version as someone from your support staff, v9.3.0, but sadly, this didn't solve my problems either.

fisknils@linuxburk11:~$ apify
(node:28307) Error Plugin: apify-cli: files attribute must be specified in 
/home/fisknils/.nvm/versions/node/v9.3.0/lib/node_modules/apify-cli/package.json
module: @oclif/config@1.6.21
plugin: apify-cli
root: /home/fisknils/.nvm/versions/node/v9.3.0/lib/node_modules/apify-cli
See more details with DEBUG=*
Apify command line client to help you create, develop, build and run Actor acts.

VERSION
  apify-cli/0.1.9 linux-x64 node-v9.3.0

USAGE
  $ apify [COMMAND]

COMMANDS
  call    Runs the act remotely on the Apify platform.
  create  Creates a new act project directory from a selected template.
  info    Displays information about current Apify settings.
  init    Initializes an act project in an existing directory.
  login   Logs in to the Apify platform using the API token.
  logout  Logs out of the Apify platform.
  push    Uploads the act to the Apify platform and builds it there.
  run     Runs the act locally in the current directory.

I tried googling, but couldn't find any references to this problem.

I'm attaching log files from running with DEBUG=*
linux-debuglog.txt
win-debuglog.txt

Also, this is the output from tree on the linux box after running apify init in an empty directory
tree.txt

The tree structure on the windows machine looks the same.

@fisknils
Copy link
Contributor Author

fisknils commented May 29, 2018

Seems to be related to this:
oclif/config@v1.6.19...v1.6.20

"fix: warn if files attribute is not specified"

@drobnikj
Copy link
Member

Yeah probably, thanks for investigation. But anyway apify-cli should work but prints this error on each command run. We fix it ASAP.

@drobnikj drobnikj self-assigned this May 29, 2018
@drobnikj drobnikj added the bug Something isn't working. label May 29, 2018
drobnikj added a commit that referenced this issue May 29, 2018
@drobnikj
Copy link
Member

Fixed in v0.1.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants