How to install zurb foundation on Linux - vue.js

I am using Linux and need to install Zurb Foundation for emails. I am following the instructions by foundation's readme file but i got this error in terminal.
npm ERR! code 1
npm ERR! Command failed: git clone --mirror -q https://github.com/gulpjs/gulp.git /home/aleksandar/.npm/_cacache/tmp/git-clone-f2e4e63d/.git
npm ERR! /home/aleksandar/.npm/_cacache/tmp/git-clone-f2e4e63d/.git: Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /home/aleksandar/.npm/_logs/2019-04-09T11_37_25_470Z/debug.log

you can use an other way to install it like NPM Package and yard and bowl or download it from foundation's own site. if you want to install at ez way for all time it's better do this :
First install Node js and open your terminal type this :
npm install --global foundation-cli
after install it go to your direction like this : ~/user/anyfolder
and type this in your terminal :
foundation new
Done! you got foundation all file and packages.

Related

Cannot install react-native-vector-icons/Ionicons in visual studio code

I'm trying to use Ionicons in react native with vscode. But when I type the command:
npm install react-native-vector-icons/Ionicons
I receive the error:
PS C:\ReactNProjects\test230215> npm install react-native-vector-icons/Ionicons
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git#github.com/react-native-vector-icons/Ionicons.git
npm ERR! git#github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
I tried removing the nod_modules folder and tried to install again but still nog success. Does anyone have a clue?
You need to install react-native-vector-icons instead of react-native-vector-icons/Ionicons as docs. After following instructions you can simply use it by importing.
Are you sure of your npm command?
I found this command: npm install --save react-native-vector-icons
(source: https://github.com/oblador/react-native-vector-icons#installation)
And then you import react-native-vector-icons/Ionicons at the top of your js/ts file(s)

Missing write access error on nativescript install

When I attempt to install nativescrtipt by running npm i -g nativescript, I receive the following error:
npm WARN checkPermissions Missing write access to
/usr/local/lib/node_modules/nativescript
npm ERR! path /usr/local/lib/node_modules/nativescript
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access
'/usr/local/lib/node_modules/nativescript'
npm ERR! enoent This is related to npm not being able to find a
file.
I have tried to run the command as sudo and receive the same result. I also attempted to add write permission to the node_modules directory.
I am running node v10.6.0 on macOS High Sierra.
Add sudo command to allow you run the program with security privilege
sudo npm i -g nativescript
I followed this link: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally to resolve the issue.
I installed nvm and updated to the latest version of node. Then, the command npm i -g nativescript successfully installed the nativescript-cli.
The issue does not appear to be coming from nativescript, but an issue with my node installation.
Run the following command sudo npm i -g nativescript
This will forcefully with security permission install the missing scripts to run the npm command again with no bugs or warnings

Why does Fabric Composer npm-install fail for my Ubuntu setup?

I'm a newbie to npm and hyperledger fabric-composer
Question: What is the problem with my setup? What is the strategy to investigate and solve such errors?
What I did:
Setup Ubuntu Linux 14.04 LTS (64-bit)
Installing prerequisites using the script provided on
https://fabric-composer.github.io/tasks/prerequisites.html
Executing npm install causes (don't know if this info is sufficient):
[...]
File "/usr/local/lib/python2.7/dist-packages/docker/transport/ssladapter.py", line 22, in <module>
urllib3.connection.match_hostname = match_hostname
AttributeError: 'module' object has no attribute 'connection'
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/home/mjh/.nvm/versions/node/v4.6.2/bin/node" "/home/mjh/.nvm/versions/node/v4.6.2/bin/npm" "install"
npm ERR! node v4.6.2
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! getting-started#1.0.0 install: `scripts/download-hyperledger.sh && scripts/start-hyperledger.sh && npm run deployNetwork`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the getting-started#1.0.0 install script 'scripts/download-hyperledger.sh && scripts/start-hyperledger.sh && npm run deployNetwork'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the getting-started package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! scripts/download-hyperledger.sh && scripts/start-hyperledger.sh && npm run deployNetwork
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs getting-started
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls getting-started
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/mjh/sample-applications/packages/getting-started/npm-debug.log
See link for detailed npm-debug.log file
https://gist.github.com/mjh-halder/9fe473b44f0a731c996bbc5754011013
I've seen this problem before on trusty (14.04) and relates to an out of date urllib3 library for python, which is used by docker compose.
depending on which version of pip you have installed you can update the urllib library as follows
pip install --upgrade pip
pip install -U urllib3
You are missing permissions, so you need to do sudo npm-install ...
The issue here is related to the last part of the installation script - this is the part that installs the docker-compose tool. Testing this today on a clean Ubuntu 14.04 LTS image, that was the cause.
I'd recommend installing docker-compose following the instructions on the docker site. (https://docs.docker.com/compose/install/)
In effect this is
curl -L "https://github.com/docker/compose/releases/download/1.10.0/docker-compose-$(uname -s)-$(uname -m)" -o
chmod +x /usr/local/bin/docker-compose
Run the docker-compose --version to check it's installed correctly
$ docker-compose --version
docker-compose version: 1.10.0
Then run the rest of the Fabric Composer scripts as before.
We're updating the script - but this should get you going.

Unable to install Appium on Ubuntu 16.04

Is it because of network proxy settings in my machine? Also I am under corporate firewall.
error:Failed at the appium-chromedriver#2.9.2 install script 'node
install-npm.js'
Kindly help me to solve this issue
paranth#paranth-ThinkCentre-M73:~$ npm install -g appium
/home/paranth/.linuxbrew/bin/appium -> /home/paranth/.linuxbrew/lib/node_modules/appium/build/lib/main.js
/home/paranth/.linuxbrew/bin/authorize-ios -> /home/paranth/.linuxbrew/lib/node_modules/appium/node_modules/.bin/authorize-ios
> appium-chromedriver#2.9.2 install /home/paranth/.linuxbrew/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-chromedriver
> node install-npm.js
info Chromedriver Install Installing Chromedriver version '2.21' for platform 'linux' and architecture '64'
info Chromedriver Install Opening temp file to write chromedriver_linux64 to...
info Chromedriver Install Downloading http://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip...
info Chromedriver Install Writing binary content to /tmp/201694-10666-t0tuz0.b4lorsh5mi/chromedriver_linux64.zip...
info Chromedriver Install Extracting /tmp/201694-10666-t0tuz0.b4lorsh5mi/chromedriver_linux64.zip to /tmp/201694-10666-t0tuz0.b4lorsh5mi/chromedriver_linux64
Invalid or unsupported zip format. No END header found
/home/paranth/.linuxbrew/lib
`-- (empty)
npm WARN optional Skipping failed optional dependency /appium/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.0.14
npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/home/paranth/.linuxbrew/Cellar/node/6.7.0/bin/node" "/home/paranth/.linuxbrew/bin/npm" "install" "-g" "appium"
npm ERR! node v6.7.0
npm ERR! npm v3.10.7
npm ERR! code ELIFECYCLE
npm ERR! appium-chromedriver#2.9.2 install: `node install-npm.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the appium-chromedriver#2.9.2 install script 'node install-npm.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the appium-chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install-npm.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs appium-chromedriver
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls appium-chromedriver
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/paranth/npm-debug.log
npm ERR! code 1
To set up android automation in linux:
a) linuxbrew installation: https://github.com/Linuxbrew/linuxbrew
b) Download and extract android sdk to home folder: http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
c) Set android sdk path:
Open file by command:
sudo gedit ~/.bashrc
Add these lines at the end of the file:
adding linux brew path
export PATH="$HOME/.linuxbrew/bin:$PATH"
export LD_LIBRARY_PATH="$HOME/.linuxbrew/lib:$LD_LIBRARY_PATH"
#android
export ANDROID_HOME=/home/asci/android-sdk-linux
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Close the file.
Run the command:
source ~/.bashrc
e) Run these commands one by one:
android
(It will open the sdk manager, and install all the sdk tools from the Tools folder and Android 6.0 API 23)
brew install node
npm install -g appium
appium &
(It will start the appium server needed to run automation)
Get out of firewall or business network and try from a personal data network. It'll work. It worked for me.
Then try "npm install -g appium"

Installing Emmet and other packages on Atom Text Editor

I'm having issues installing emmet.io as a package on Atom Text Editor (Win7 x64).
Any idea of how I could do this?
I get always an error message
`npm http GET https://registry.npmjs.org/emmet
npm http 304 https://registry.npmjs.org/emmet
npm http GET https://registry.npmjs.org/requirejs
npm http 304 https://registry.npmjs.org/requirejs
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.`
`npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Users\\USERNAME\\Desktop\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\USERNAME\\Desktop\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\USERNAME\\Desktop\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\OMARSERVICE\\.atom\\.apmrc" "install" "C:\\Users\\USERNAME\\.atom\\.node-gyp\\.atom\\.apm\\emmet\\2.1.3\\package.tgz" "--target=0.11.13" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\Users\USERNAME~1\AppData\Local\Temp\apm-install-dir-114726-7860-1j2mfss
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ENOGIT`
OK, I found a solution of how install any package on Atom.io
Instruction for Windows 7 (x32/x64)
Note: Make sure Atom.io is closed.
Download https://windows.github.com/
Run the installation as standard
Run Git Shell (figure #1)
Locate the directory via Git Shell: cd ~/.atom/packages
Run git clone https://github.com/emmetio/emmet-atom or whatever package you are looking forward to install (figure #2)
Next, got to cd emmet-atom (figure #3)
Lastly run npm install (figure #4)
You can follow this instructions by any package as long its GitHub like this https://github.com/github-user/package-name. In short copy the url of your appropriate package.
That's it!!
Screenshots:
4
In your question, Atom/apm/npm is complaining about not being able to find the git command. It needs the git executable to install the package from Github.
To fix this, you need to make sure that
Git is installed on your machine
The git executable is on your path
If you have GIT installed on your computer you most likely need to go to your Control Panel\System and Security\System Click on Advanced system setting click on Environment Variables and under system NOT USER variables select the Path variable and click edit and add C:\Program Files (x86)\Git\bin;(or where ever your git.exe file exists) to the string.
I have the same problem. I solved it this way: install git 2.1.3 from repo, then copy&paste the path of bin git into C:\Program Files (x86)\Git\bin insdide of path on environment variables. After reboot your PC , open atom text edit and search in settings -> package, write emmet, click on button, install it and now it works, emmet is installed.