Yarn install is not working, terminal looks: There appears to be trouble with your network connection. Retrying - yarnpkg

I have a problem with yarn install on the server. Before I tried simply yarn install and it did not work. After I tried yarn install --network -timeout=30000 and the same result. It got stuck here. How can i solve it? Also my internet connection is very good.
[3/5] Fetching packages...

Related

I am trying to run Dusk in Laravel Failed to connect to localhost port 9515: Connection refused

I followed all the steps as in documentation of Laravel but still no luck
And i am using Docker (laradock) in mac
Since you are on a Mac, try installing Chromium with Brew:
brew install --cask chromium
This fixed the issue for me.

Incorrect integrity when fetching from the cache

When running yarn add --dev jest, I got error Incorrect integrity when fetching from the cache.
Full output:
tests (master)$ yarn add --dev jest
yarn add v1.19.0
info No lockfile found.
[1/4] Resolving packages...
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad#1.3.0: use String.prototype.padStart()
[2/4] Fetching packages...
error Incorrect integrity when fetching from the cache
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
I tried removed node_modules, re-ran yarn install and yarn add --dev jest to no avail.
How do I fix this?
yarn cache clean
To fix this, run:
yarn cache clean
yarn add --dev jest
From the yarn cache documentation:
yarn cache clean [<module_name...>]
Running this command will clear the global cache. It will be populated again the next time yarn or yarn install is run. Additionally, you can specify one or more packages that you want to clean.
You can also see where the cache is with yarn cache dir.
yarn cache dir
Running yarn cache dir will print out the path where yarn’s global cache is currently stored.
Yarn cache clean did not help. We must downgrading yarn version on the server.
It turns out that the problem is associated with the use of private packages.
GitHub Yarnpkg - "Incorrect integrity when fetching from the cache" #7584
For anyone who is working with heroku and sees this error:
install heroku cli
login via heroku login
heroku plugins:install heroku-repo
heroku repo:purge_cache -a $YOURAPPNAME
then do a manual rebuild
Clean the cache and reinstall:
yarn cache clean
yarn install -f
You need to run these two commands before installing the package:
yarn config set unsafe-disable-integrity-migration false
yarn cache clean
Tried to upgrade yarn and it solved my problem. It may be due to the compatibility issue
yarn policies set-version
Will download the latest stable release
Reference : yarn docs https://yarnpkg.com/lang/en/docs/cli/policies/#toc-policies-set-version

replace yarn version v1.0.0 to v0.28.4

I currently used nightly builds to update my yarn and I'm using yarn v1.0.0-20170906.0822.
But it had a serious problem which is blocking deployment on Heroku.
So, I searched a way to migrate from v1.0.0xx to v0.28.4.
I tried to remove it using brew uninstall yarn however it failed to delete yarn so I can still v1.0.0xx shown when I hit yarn --version on the terminal.
I remember I installed yarn via brew, not npm.
Are there any other options to delete yarn and replace it with v0.28.4?
You can use the switch subcommand:
brew switch yarn 0.28.4

error: cannot install "heroku": snap not found

I am following the instructions from official heroku website to install heroku on my ubuntu 14.04.
First I installed snapd on ubuntu and then tried to install heroku by running:
sudo snap install heroku
But I am getting following error
error: cannot install "heroku": snap not found
I posted this question on askubuntu but it wasn't of much help. Could somebody please help how can I fix this issue ?
To install heroku in all currently supported versions of Ubuntu open the terminal and type:
sudo snap install --classic heroku
This installs the heroku snap package successfully, and it is the recommended way of installing Heroku CLI in Ubuntu at the Heroku Dev Center website. When this was posted sudo snap install --classic heroku installs the latest version of Heroku.

How to install and configure LAMP on ubuntu 12.04

Could somebody please tell me how to install and configure LAMP on ubuntu 12.04 ? Is there a package similar to WAMP Server that is all-in-one ? I have tried to install from command line ,PHP,MySQL work but apache gives me this after sudo service apache2 restart
* Restarting web server apache2
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
And I think probably I did something wrong when installing !
Thank you !
From this tutorial,
Run this commands in Ubuntu Terminal-
sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
For Checking-
php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'
If u get-
Your PHP installation is working fine.
Then you are done.
You can follow tutorial from below link to setup LAMP on your Ubuntu 12,
http://technarco.com/ubuntu-linux/how-install-lamp-ubuntu-12
Enjoy, :)
To resolve this error, you need to stop other process using this port.
In some of cases it is nginx. you can stop it
sudo /etc/init.d/nginx stop
you can install lamp server using Tasksel (Tasksel is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated “task” onto your system. This program is used during the installation process, but users can also use tasksel at any time)
check this post http://wiki.workassis.com/ubuntu-install-lamp-using-tasksel/

Resources