-
-
Save ederrafo/42d4c10a7a9573b1d577bcd28d4e1997 to your computer and use it in GitHub Desktop.
gulp nodejs node npm javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - Funciona sobre nodejs | |
| - Gulp permite automatizar tareas comunes (build system): minified, reload browser, compression of images, validation sintaxis code , etc | |
| - Guidlines: Your plugin should only do one thing, and do it well. | |
| - Gulp utiliza el modulo stream de node.js, lo cual lo hace mas rapido para construir a diferencia de grunt. | |
| # Installation: | |
| if we will use one linux guest in a windows host: | |
| https://github.com/npm/npm/issues/992 | |
| In Host: - Go to windows/execute -> secpol.msc | |
| - Directivas locales > Asignacion de derechos de usuario > crear vinculos simbolicos -> doble clic y añadirtu usuario | |
| If running inside VirtualBox on a shared folder | |
| You must enable symlinks on the shared folder | |
| $ VBoxManage.exe setextradata "<vm name>" VBoxInternal2/SharedFoldersEnableSymlinksCreate/<shared folder> 1 | |
| Verify with | |
| $ VBoxManage.exe getextradata "<vm name>" enumerate | |
| Test | |
| In shared folder : ln -s ~/node_modules node_modules | |
| If You will receive security or critical stability updates for this version. | |
| * https://deb.nodesource.com/setup_8.x — Node.js 8 LTS "Carbon" (recommended) | |
| * https://deb.nodesource.com/setup_10.x — Node.js 10 Current | |
| Gulp | |
| Description: Ubuntu 14.04.5 LTS | |
| $ curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - | |
| $ sudo apt-get install -y nodejs | |
| $ nodejs --version | |
| v8.15.0 | |
| $ npm --version | |
| 6.4.1 | |
| $ sudo npm install -g gulp | |
| $ gulp --version | |
| [15:08:17] CLI version 2.0.1 | |
| Create first demo | |
| $ sudo chown -R $USER:$USER ~/.config/ | |
| $ mkdir gulp-first-demo | |
| $ npm init -y | |
| $ npm install --save-dev gulp | |
| $ gulp --version | |
| [22:25:51] CLI version 2.0.1 | |
| [22:25:51] Local version 4.0.0 | |
| Commands: | |
| $ npm rebuild -- it solved my problem | |
| $ npm install -g npm@5.7.1 | |
| $ npm cache clean --force | |
| srcs: | |
| https://stackoverflow.com/questions/35807568/vagrant-synced-folder-permissions | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment