I'm working on a NodeJS project on my Windows laptop. I'm about to buy a Mac and wanted to work on that project from the Mac. I have a git repo for the project, which is also set up remotely on github. I'm not sure how I'm supposed to move that project to the Mac. Could someone highlight the steps and specific git commands I would have to run in order shift that project to my Mac. Also, what would happen to the dependencies I've installed?
You want to install homebrew and then
brew install node
after that clone your repo and npm install
Related
I have one project that is running in mac book with laravel homestead
Laravel 5.6
Virtualbox 5.2
node js versions 10.8.0
git clone https://github.com/laravel/homestead.git ~/Homestead
cd ~/Homestead
git checkout v7.16.1
Composer 1.8.5
Same setup is working on any man book
But when i try to install all software in windows
everything went correctly Except
When i'm tring to run composer install inside of homestead in my project dir
I'm getting following errors
Skipped installation of bin bin/doctrine-dbal for package doctrine/dbal: file not found in package
Skipped installation of bin Resources/bin/var-dump-server for package symfony/var-dumper: file not found in package
Skipped installation of bin bin/php-parse for package nikic/php-parser: file not found in package
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
Could not scan for classes inside "/home/vagrant/sites/emsadmin/vendor/sebastian/object-enumerator/src/" which does
not appear to be a file nor a folder
Also i'm getting error in npm run watch
I have tried so many commands but no luck
Update your Homestead, Vagrant and most importantly to VirtualBox (to v6). I had same issue with another side effect, updating to VirtualBox v6 solved it for me.
See this GitHub issue. https://github.com/laravel/homestead/issues/1219
I would like to develop a chatbot and then chose botkit as the tool to use. Following the steps to install it as described here,I first cloned the repository to my local disk D: this worked but the second step command (for Installing dependencies, including Botkit:)
cd botkit-starter-facebook
npm install
doesn't work giving me the error :
I don't understand what that means so it is hard for me to solve it.
I am using windows 7 x64bits pack 1 and node version 6.9.5 and npm version 3.10.10
Git was not in the path system environment variable and I add it but I am still getting the same error.
This is probably because git is not installed or not in the path. npm is trying to pull some dependency from github but unable to clone it as git is not available. Once you have git working, this should work.
Question:
How to install NodeJS package (like grunt-cli) manually without using npm?
Environment:
I have installed Windows 10 with "Bash on Ubuntu on Windows".
I have successfully installed NodeJS + Grunt in the "normal" Windows environment without Bash.
NodeJS is installed in the bash environment (Linux-subsystem)
Grunt is not yet installed in the (Linux-subsystem)
Background (why):
My colleague's grunt tasks was developed for an Ubuntu environment and calls bash commands directly which obviously does not work in a "normal" Windows environment. This is an experiment to see if it is possible to run his grunt tasks in "Bash on Ubuntu on Windows" however, I am stuck on the part where npm tries to download the packages (network libraries are not yet supported by Linux-subsystem so commands like curl does not work).
I am hoping to "skip" the download part of npm by manually copying the downloaded version from the Windows environment (or GitHub) into the "node_modules" directory in the Linux-subsystem.
However, I do not know how to configure npm that there was a new package added and that it may use that package now.
You can copy all the packages you need with dependencies into node_modules directory and it will work fine.
I think the best way is install packages using npm on a "normal" computer. Then copy the node_modules directory on "normal" computer to your target directory.
Pre-built installer is now available in all platforms in the official website
https://nodejs.org/en/download/
You no need to install modules when node_module dir is available. If project is cloned from version control (GIT) Repository or node_modules folder is not available you should run below command
npm install
Otherwise you need to insert node_modules manually to your project.
you can also download node_modules from other computer and copy modules to your project
npm install --save <PACKAGE NAME>
Then you can find you dependency modules in your console folder.copy those files to your folder.
What you need to know:
I have Node, NPM, Ruby, SASS all installed and at lastest stable realeases. (ruby isn't at it's lastest stable but the lastest stable does not have the sass gem):
https://drive.google.com/folderview?id=0B2JHimBsITS6WHpCTmU4SXBQU28&usp=sharing
I updated npm by using the command line and following the guide on troubleshooting updating npm on windows I USED OPTION 3
I then went back to google's instructions for setting up the starter kit:
$ cd web-starter-kit
$ npm install
$ npm install gulp -g
I scrolled down and followed the steps to "Set Up Your Web Starter Kit Project" keep in mind that i renamed the folder from "web-starter-kit" to "google web" in this case for convenience
So i navigated to the starter kit folder using cmd (with admin rights) and typed
npm install
here are the results:
See link to google drive
I still decided to go ahead and still tried to install gulp using
npm install gulp -g
within the starter kit folder heres the results:
See link to google drive
Who ever helps me rectify this will receive my praise forever...I really want to be using this starter kit to start my projects.
Be sure to reference the install.md for the GWSK git repo.
Looking at your install steps above, you are running npm install before installing Gulp. In the doc I referenced, it's Node.js, Gulp, then run the npm install inside of your project root.
I had errors when using the zipped version of GWSK that I downloaded from GitHub. When I cloned the repo with git, I had a error free clean install and no problems at all.
Cheers - D
EDIT:
OK, here is a step by step on the command line...
First I would have downloaded and installed node.js
Then I would have installed gulp (npm install --global gulp)
I'd then go to my web folder and clone the starter kit into a new project folder: "git clone https://github.com/google/web-starter-kit.git my_new_project"
The I cd into my new project folder and run: "npm install"
You should now be ready to work. While still in your new project folder run "gulp serve". That will start your web server, you can make all your changes in the app folder.
HTH - Don
In the government organisation I work for we have many workstations on a closed intranet network. There's a way to get internet but that doesn't work for every application.
I'm doing a bit of research to Cordova and Phonegap, and I'd like to know if it's possible install Cordova and compile projects with it, all while fully offline.
I can install Node.js, the JDK, the Android SDK and ANT fully offline. However, the installation command for Cordova is 'npm install -g cordova'.
Is there a workaround for this? I know there's a source zip file download but I simply don't know where to put all those files.
Also, upon building a project with Cordova I can see it checking for latest versions of plugins on github. I think it's possible to download the plugins offline. But would the build process succeed if the plugins version checks fail?
try npmbox, it is the new name of npmzip which will allow you to install offline npm packages by one file