Why is a yeoman scaffold so slow? - npm

A simple yo webapp with a freshly installed Yeoman 1.4.6 and a freshly installed Node.js 0.12 (I've also tested with 0.10) takes four minutes on my computer! I'm wondering if things are configured as they should. Does npm have to download do all these things every time? What happened since Paul Irish initial demo?
My system is an Ubuntu 14.10, Node.js 0.12 installed using these instructions.
Update: Here's an asciicast from another machine (Ubuntu 14.04, Node.js 0.10, NPM 2.7.1): https://asciinema.org/a/17741

The "module" concept of node.js is around "download on first install and save to cache for future installs". Basically, then you start yo webapp on fresh node.js install, all required node.js modules are download from internet and saved to cache. Second yo webapp command will do much faster (like in demo) since all required modules are already downloaded to your computer.

Related

After I upgraded to macOS Ventura (13.0) nextjs and any npx command stuck

After I upgraded to macOS 13. I found a problem with command in nextjs first. I tried to run my project with: npm run dev
This is result:
> dev
> next dev
It stucked on this log very very long time.
and I tried to create another project using:
npx create-next-app#latest
Result same to nextjs
About my computer:
Macbook pro 2018 13-inch 4 ports
I used Oh My Zsh on terminal
my node.js version is 16.18.0 (16.9.1 on this question created)
UPDATED 27/10/22
After I asked in this community. I tried many way to solve this issues.
This is way I tried:
Reinstall macOS Ventura and not working
Change node.js version to 16.18.0 => 19.0.0 and downgraded to 16.18.0 and not working
And now this problem is still. I still can't resolve this problem :(
I also had the same problem when I tried to run the nestjs application. Also failed to install packages, I got this error every time
It turned out that this could be a problem related to the IPv6 configuration. I disabled this setting and everything started working fine
Maybe it will also help you.
UPDATES
You can find this settings
Updated 28/10/2022 This problem I can resolved!!!!!
Today, I tried to clean install macOS Ventura (by backup internal storage => erase internal storage => install macOS Ventura by bootable drive and recovery data from backup hard disk)
All commands worked normally!
If you found a problem like this, you can resolve by clean install macOS!

Install Phalcon on RHEL 7

I'm trying to install Phalcon on my RHEL 7 VM. I downloaded files and folders from GitHub and place them on my VM via WinSCP in /opt/ (using remi repo or git clone from VM is blocked)
When I move into /opt/phalcon/build/ and try to sudo ./install, I got a notice that PHP 5 is no longer supported, currently on my Red Hat, I have PHP 7.3.11 version running (checked using php -v and config page).
I installed things like php-devel or gcc.
I have rh-php73-php installed and running on my VM
Maybe someone can help me, because I have no idea how to fix it.
I have rh-php73-php installed and running on my VM
Sorry, but phalcon extension package doesn't exist for this PHP stack.
Using the full php stack from "remi-php73" repository or php73 SCL from "remi-safe" will give you "php-phalcon4" package with latest version of this extension.
using remi repo or git clone from VM is blocked
Use a proxy, or download packages and install them manually.
Tips: test installation from another computer, connected to internet, to get the full package list. You can even retrieve them later from /var/cache/yum (using keepcache=1 in yum.conf)
For memory, for a proper installation, follow the Wizard instructions

Running Big Commerce's Stencil CLI on Windows 10

I can not get Stencil to run for the life of me. I am using NVM to mange my version of node - I tried both 10.16 and 10.19.
I have reinstalled Stencil 2 or 3 times now and ever time I get the same error:
WTF? Has anyone got this to successfully run on a Windows 10 machine? We originally had node 13.9 installed but I was getting the same errors so I figured it was because it was outside their "approved" versions. I spoke to their customer support and they told me that it should work with newer version but that they can't give it proper approval until it's goes through some process.
So I can't get this to work on any version......
Any help would be very much appreciated!
Before installing nvm was a previous version of node installed? You'll need to uninstall nvm and node before installing nvm which can cause this. You can confirm which version of node is installed using node --version

Installing Apache Cordova

I'm new to this of Apache Cordova. I'm trying to follow the documentation but cannot understand it very well. It says that for prerequisite I need to install the correspondant SDK. I did install Android Studio. then downloaded the Node.js and then tried to run the installation but it doesn't start I don't understand why it doesn't start. There is another things that I need to do so it starts installing?
Any help will be great. Thanks!
I think the clue is in the message -- just run the command npm install -g cordova from the normal DOS command prompt.
first of all you have to install 1)node.js 2)apache ANT 3) Java JDK & JRE 4) Android SDk & Eclipse and then after all installation you have to set this all software path into environmental- variable. and then fire your npm install -g cordova. without this all software installation and there path setup your phoneGap application will not created. and still you have any confusion and any question related software installation and there path setup then again tell me i will help you.
First and foremost, you want to install Node.js in order to get the 'npm' commands to work.
https://nodejs.org/download/release/latest/
You can download the latest version of Node.js from there... I was on a Mac, so I did the .pkg download. Install the appropriate one for your development machine.
After that, the 'npm' commands for Cordova will work. Hope this at least gets you started! :)

Creating a Mono binary install package for CentOS 5.2

I'm new to Linux but have to port a asp.net app to Linux platform. (CentOS 5.2)
I downloaded the mono source files and manually build them on my dev box, because there's no aviable Binary package for CentOS 5.2 (almost the same as RedHat), the app works well on the dev box.
The next step is to setup the production server, which has minimal libraries installed.
My question is... how to make the Mono binary files into a install package so I don't need to download and build them in the production server.
(My dev box is the same configuration as the production one)
I have tried to copy all mono related files into the server, but with no luck... May I missed some files or some settings...
You can still get binary RPMS here
EDIT:
Recently, Mono announced support for RHEL/CentOS. You can get packages from them here.