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

Npm install error #691

Closed
egermano opened this issue Oct 21, 2014 · 6 comments
Closed

Npm install error #691

egermano opened this issue Oct 21, 2014 · 6 comments

Comments

@egermano
Copy link

My build was working until this week.

The same dependencies but I add a services in setup file.

That's my build: https://app.shippable.com/builds/544660ca3d080f3b00f452e2

Anyone can help me?

@rageshkrishna
Copy link
Contributor

Looks like you're running in to a race condition with npm that may get resolved by upgrading to the latest release. More details at npm/npm#6309

Can you please try including the following in your before_install:

before_install:
  - source ~/.nvm/nvm.sh            # this is already present
  - npm install -g npm@next         # this upgrades npm to the latest

@manishas
Copy link
Contributor

@egermano looks like you're running into the github rate limits for composer now. I found this at https://getcomposer.org/doc/articles/troubleshooting.md-

API rate limit and OAuth tokens#

Because of GitHub's rate limits on their API it can happen that Composer prompts for authentication asking your username and password so it can go ahead with its work.

If you would prefer not to provide your GitHub credentials to Composer you can manually create a token using the following procedure:

Create an OAuth token on GitHub. Read more on this.

Add it to the configuration running composer config -g github-oauth.github.com
Now Composer should install/update without asking for authentication.


Another option is to use the following in your yml -
composer install --prefer-source --no-interaction


@manishas
Copy link
Contributor

another solution at #426 that worked for another user.

@egermano
Copy link
Author

@rageshkrishna your suggestion works! Thanks

Now I try to fix composer limit as @amnishas suggest.

@egermano
Copy link
Author

The Composer using a github oauth token works.

Thank you @manishas

@manishas
Copy link
Contributor

Closing since this is already resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants