how do I update my Heroku , my windows terminal shows the following :
» Warning: heroku update available from 7.47.7 to 7.52.0.
please help
You have to run
heroku update
in the terminal to update the CLI.
If that doesn't work, this means you have the CLI app as an npm or an apt package, in that case you have to run
apt installation:
sudo apt-get update && sudo apt-get upgrade heroku
npm:
npm upgrade -g heroku
yarn:
yarn global upgrade heroku
Refer to the article here for more information.
Related
Using npm run dev results in the error:
Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. configuration.module.rules[10] has an unknown property 'loaders'
Jetstream Version: 1.6
Jetstream Stack: Livewire
Laravel Version: 8.14
PHP Version: 7.3.0
Database Driver & Version: MySQL v8.0
Steps to reproduce:
Navigate to directory hosting Laravel 8 project
Run command rm -rf node_modules and wait for the command to complete
Run command rm package-lock.json
Run command npm cache clear --force
Run command sudo npm install --global npm - this updates NPM (Node Package Manager)
Run command sudo yarnpkg install
Run command sudo yarnpkg add babel#latest
Run command sudo yarnpkg add webpack#latest
Run command sudo yarnpkg add webpack-cli#latest
Run command sudo yarnpkg add vue-template-compiler --save-dev --production=false
Run command sudo yarnpkg add sass-loader#8.* sass --save-dev --production=false
Run command sudo npm install --global cross-env
Run command yarnpkg run dev
NPM is supposed to return a success message, but clearly something is either broken or misconfigured...
Problem has been solved through either an NPM or Yarn update
I run npm install gulp in Ubuntu. Show this error:
My Server is Ubuntu 16.04.
Framework is Laravel 5.6.
ERROR: npm is known not to run on Node.js v4.2.6
Node.js 4 is supported but the specific version you're running has
a bug known to break npm. Please update to at least 4.7.0 to use this
version of npm. You can find the latest release of Node.js at https://nodejs.org/
I run node -v show this message: v4.2.6
I run sudo apt-get install --only-upgrade nodejs show this message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (9.11.1-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
How to solve this problem?
Try this.. First, Uninstall completely nodejs and npm.
sudo apt remove nodejs npm
Then, reinstall it:
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
Refer: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
Try:
sudo apt-get update
sudo apt-get install nodejs (you already have node so this step is probably not required)
sudo npm install -g gulp
That should resolve your issue.
heroku run rails console
▸ heroku-cli: update available from 6.11.17 to 6.14.16-9ae58fc
▸ No app specified
How do I update my heroku-cli version?
You are not obligated to update. I am using a previous version as well, and everything works fine.
But if you want to update check this link: https://devcenter.heroku.com/articles/heroku-cli
It says that to update your heroku cli you just have to do this:
heroku update
But there is this issue:
Not all methods of installation are updatable with heroku update. Apt users will have to use sudo apt-get update && sudo apt-get upgrade heroku. npm/yarn users will have to update with npm upgrade -g heroku-cli or yarn global upgrade heroku-cli
If updating does not update the CLI, try uninstalling with the uninstall instructions below
heroku update
did not work for me. I had to run:
sudo apt update && sudo apt install heroku
in order to get an update.
Uninstall Heroku by using command:
sudo apt-get remove Heroku
Then install Heroku by:
sudo apt-get install heroku
Now check Heroku version:
heroku -v
I am using Windows 11 and heroku update is working properly.
Remember to run this command in the terminal as an administrator.
This is how I updated:
npm update -g heroku
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.
When I try to install odoo_v9 it successfully install, and create demo database it also created, but after install demo database it give me error like "Could not execute command 'lessc'"....
Thanks in advance.
This error occurs almost everytime with a fresh installation of Odoo.
(Especially with Ubuntu 12.04)
First run these three commands in your terminal.
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
Then you install nodejs:
sudo apt-get install nodejs
You can then check version of nodejs using:
node -v
It should be at least greater than > 0.10
npm -v
Should return a version at least > 1.4
Then finally execute the following command, whick will update npm to a newer version as well as install the less plugin:
sudo npm install -g npm
sudo npm install -g less less-plugin-clean-css