Bigcommerce node version error after reinstall stencil-cli - bigcommerce

The stencil gives an error info when I run $ stencil start today.
Error info: You are using an outdated version of stencil-cli, Please run $ npm install -g bigcommerce/stencil-cli.
I reinstall the Stencil-CLI and run
$ npm install and $stencil start
You are running an older version of node. Please upgrade to >= 4.0.0
What should I do to resolve this problem? Can anyone help?

upgrade your node version to 4.0.0 or higher and then run npm install for stencil CLI
Check out nvm-windows installation instructions. You should then use nvm-windows to update your node to 4.X+

I had to run nvm use 4.
Now using node v4.7.3 (npm v2.15.11)
Once I ran this and tried stencil start, it worked for me.

Related

Purescript version change issue

My current purescript version is 0.11.7, I would like to change it to 0.12.0. I have tried uninstalling using npm uninstall -g purescript and it gets successfully uninstalled but still purs --version gives 0.11.7. I have also tried running npm install -g purescript#0.12.0 and it does get successfully installed but still purs --version gives 0.11.7. Please help!
Maybe you installed the package globally via yarn. Try yarn global remove purescript

How to Update Angular Cli

Just to give you some context.
I was running a project and after ng serve I was getting this warning message:
our global Angular CLI version (9.1.4) is greater than your local
version (1.0.0). The local Angular CLI version is used.
I googled and figured out I should update angular cli with the following command.
npm install --save -dev #angular/cli#latest
After that I am getting the following error when trying to build the project:
The build command requires to be run in an Angular project, but a project definition could not be found
Any help will be much appreciated.
After reading some issues reported on the GitHub repository, I found the solution.
In order to update the angular-cli package installed globally in your system, you need to run:
npm uninstall -g angular-cli
npm install -g #angular/cli#latest
Depending on your system, you may need to prefix the above commands with sudo.
Also, most likely you want to also update your local project version, because inside your project directory it will be selected with higher priority than the global one:
rm -rf node_modules
npm uninstall --save-dev angular-cli
npm install --save-dev #angular/cli#latest
npm install
After updating your CLI, you probably want to update your angular version too
Note: if you are updating to Angular CLI 6+ from an older version, you might need to read this
Edit: In addition, if you were still on a 1.x version of the cli, you need to convert your angular-cli.json to angular.json, which you can do with the following command:
ng update #angular/cli --from=1.7.4 --migrate-only
check here for more details.

You are running version v6.10.3 of Node.js, which is not supported by Angular CLI v6

I am having trouble with this error, my project need run angular/cli version 1.7.4 and Nodejs 6.10.3 .But the past I used angular cli version 6 and now I want to downgrade to angular cli 1.7.4 but I don't know how to downgrade angular cli version 6 at my global. I try to use npm uninstall -g #angular/cli and then I install the version I want by command npm install -g #angular/cli#1.7.4 but when I check ng -v it's still have a error in picture
P/S: I were updated my npm to latest version to make sure can remove angular cli version but still don't work
Keep your global package running at the highest version. If a project needs CLI 1.x, use the npm run commands instead.
Any npm commands run use the project's CLI, not your global version.

Cannot upgrade aurelia-cli from 0.21.0 to 0.23.0

When I try to upgrade aurelia-cli from 0.21.0 to 0.23.0 on Mac OS X 10.11.6, au -v displays the version as 0.21.0 instead of 0.23.0. I even tried the following, to no avail.
npm uninstall aurelia-cli -g
npm cache clean
npm install aurelia-cli -g
au -v
0.21.0
npm outdated
Package Current Wanted Latest
aurelia-cli 0.21.0 0.23.0 0.23.0
There's a few things you'll need to do. First, and based on your comments, you may have already done this: you need to run npm install aurelia-cli --save-dev. This will update the local version of the Aurelia CLI. Each Aurelia project gets its own local version of the CLI so that upgrading your global version of the CLI won't magically break something in a project. This is especially important currently with the CLI in alpha and thus the possibility of breaking changes being somewhat likely.
If you have already done this and you're still seeing 0.21.0 when you run au -v, then run rm -rf node_modules in the project directory and then npm install. Sometimes npm can be a pain in the butt.
As you are moving from v0.21.0 of the CLI to v0.23.0, you will need to follow the instructions for updating your aurelia.json file found here. These instructions are unrelated to the problem you're having, but you need to be aware of them.
I hope this helps!

Cannot install ionic using npm

Please check the below image and give a solution for this, I am stuck, please help.
Finally was able to fix the issue and install ionic, so I was hoping I should share it, if anyone having the same issue please check if my steps also works for you.
Turn off Windows Firewall
Turn off any/every Antivirus or windows defender you are running.
Clear npm cache, run - $ npm cache clean
Remove Nodejs
Restart PC
Install latest version of Nodejs
Clear npm cache again, run - $ npm cache clean
[important] First only install cordova, run - $ npm install -g cordova
Then install Ionic, run - $ npm install -g ionic
Hopefully it will work, this how I was able to fix my issue.
You have to install Node JS 0.12.6 Version,
and after that, use:
$npm install -g cordova ionic
in DOS (cmd). It will install ionic and Cordova.