os: window 10
when I create meteor project, it shows following error. So I can not learn Meteor.
C:\test>meteor create asd
C:\Users\msm08\AppData\Local\.meteor\packages\meteor-tool\1.6.1\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:218
throw error;
^
Error: Error: Could not install npm dependencies for test-packages: Command failed: C:\WINDOWS\system32\cmd.exe /c C:\Users\msm08\AppData\Local\.meteor\packages\meteor-tool\1.6.1\mt-os.windows.x86_64\dev_bundle\bin\npm.cmd install --production=false
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\msm08\AppData\Roaming\npm-cache\_logs\2018-04-01T17_24_26_459Z-debug.log
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\msm08\AppData\Roaming\npm-cache\_logs\2018-04-01T17_24_26_459Z-debug.log
at Object.error (C:\tools\utils\buildmessage.js:430:11)
at C:\tools\cli\default-npm-deps.js:36:20
at C:\tools\utils\buildmessage.js:334:18
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:333:36
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
at Object.install (C:\tools\cli\default-npm-deps.js:27:27)
at Command.func (C:\tools\cli\commands.js:801:36)
at C:\tools\cli\main.js:1523:15
Check the $path if it contains a Git:
go to this pc -> advanced System Setting -> Environmental Variables
check the Path if it contains GIT.
you can also check it via command prompt and type "Path"
You simply have to install the GIT for windows version from this LINK
It will automatically set the environment variable for GIT on your windows 10 machine. You do not have to do anything else.
Related
I am trying to install Angular CLI , ran as admin, and got the following errors
npm ERR! code 2
npm ERR! path C:\Windows\system32\node_modules\#angular\cli
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node
./bin/postinstall/script.js
npm ERR! OpenSSL configuration error:
npm ERR! 74160000:error:80000002:system library:BIO_new_file:No such
file or
directory:c:\ws\deps\openssl\openssl\crypto\bio\bss_file.c:67:calling
fopen(C:\Program
Files\PostgreSQL\psqlODBC\etc\openssl.cnf, rb)
npm ERR! 74160000:error:10000080:BIO routines:BIO_new_file:no such
file:c:\ws\deps\openssl\openssl\crypto\bio\bss_file.c:75:
npm ERR! 74160000:error:07000072:configuration file routines:def_load:no
such
file:c:\ws\deps\openssl\openssl\crypto\conf\conf_def.c:179:
I was facing the same issue. Actually I have added OPENSSL for postgre sql thats why It was causing this error. By the way I was installing ionic CLI.
So, go to environment variables, System variables and search for OPENSS_CONF and delete it. For me I deleted this and it worked.
I'm currently working on an IPFS project.
While installing the dependencies - When I run
npm i libp2p-websockets
I get the following error message:
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git#github.com/hugomrdias/pull-ws.git
npm ERR!
npm ERR! ERROR: Repository not found.
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.
npm ERR!
npm ERR! exited with error code: 128
I have already setup the SSH configuration.
Do you have any idea how this could be solved?
I am also getting the same error in one of my projects after running npm install.
It is probably because hugomrdias has removed/made private the pull-ws repository.
So, far I am not sure what to do next. I will mail him with this issue.
I use two Github platform. The public one at https://github.com and my work enterprise one https://github.work.com.
I haven't had any trouble before but I'm trying to run npm install. The project has a package.json file which contains a dependency which is references a repository in my work in git:
"my-dependency-sdk": "git+https://git#github.work.com:organization/my-dependency-sdk.git"
This is the output from the install:
npm ERR! Error while executing:
npm ERR! /usr/local/bin/git ls-remote -h -t https://git#github.work.com/:organization/my-dependency-sdk.git
npm ERR!
npm ERR! fatal: unable to access 'https://git#github.work.com/:organization/my-dependency-sdk.git/': The requested URL returned error: 400
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2018-04-10T17_44_59_498Z-debug.log
Is it possible that the Git installation on my Mac holds some configuration that may be pointing to the public Github and the repository I'm looking for isn't there?
The URL was incorrect. It should have been:
git+https://github.work.com/organization/my-dependency-sdk.git
The format I originally used was for ssh.
I had ionic installed and running properly.
Accidentally I installed beta version
npm install ionic#beta
I did that without having CMD run with administrator, after that ionic command wasn't being recognized anymore, so I tried installing ionic again, but no luck, I tried uninstalling it and then installing it again but also no luck, the error I get when I install it:
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\{user}\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic"
npm ERR! node v6.9.4
npm ERR! npm v4.1.1
npm ERR! path C:\Users\{user}\AppData\Roaming\npm\node_modules\.staging\ansi-313f575d
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\{user}\AppData\Roaming\npm\node_modules\.staging\ansi-313f575d' -> 'C:\Users\{user}\AppData\Roaming\npm\node_modules\ionic\node_modules\cordova-lib\node_modules\ansi'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\{user}\AppData\Roaming\npm\node_modules\.staging\ansi-313f575d' -> 'C:\Users\{user}\AppData\Roaming\npm\node_modules\ionic\node_modules\cordova-lib\node_modules\ansi'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
The issue was because when installed beta version without administrator privilege it created PATH variable in user scope which points only to npm directory, and this variable overrides the system PATH variable so CMD uses the user scope one, which causes ionic installation to fail.
Deleting the user's scope PATH variable and re-installing ionic fixed the issue.
I'm running an example from build-nodejs-npm-installation-package-scratch. Instead of uploading to npm repository I'm putting it on Github and trying to download it via npm instead. I run npm install git+https://github.com/t2wu/replaceme.git and got the following:
npm ERR! Error: ENOENT, chmod '/private/tmp/node_modules/replaceme_tim/replaceme.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "git+https://github.com/t2wu/replaceme.git"
npm ERR! cwd /private/tmp
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path /private/tmp/node_modules/replaceme_tim/replaceme.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/tmp/npm-debug.log
npm ERR! not ok code 0
I have a package.json in there, I cannot figure out what is wrong.
EDIT: I can install Express OK, but I can't install my practice module
This happens due to missing permissions or unlinked files while npm was working. This topicc is also seen at github, here.
Try running with admin perms.