Yeoman generator-generator giving error when running - yeoman

I am using WindowsXP and tryign to create my first yeoman angular project
I installed npm, yo, grunt-cli, generator-generator etc.
when i run
yo generator
I am getting flowing error
D:\OpenSource\html\generator-jbake>yo generator
_-----_
| |
|--(o)--| .--------------------------. `---------' | Welcome to Yeoman, |
( _'U`_ ) | ladies and gentlemen! |
/___A___\ '__________________________'
| ~ | __'.___.'__ ' ` |° ' Y `
[?] Would you mind telling me your username on GitHub? raj[?]
What's the base name of your generator? jbake
C:\Documents and Settings\hegdera\Application
Data\npm\node_modules\generator-generator\app\index.js:38
throw err;
^ 2636:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:openssl\ssl\s23_clnt.c:766:
at Object.proto.sendError (C:\Documents and Settings\hegdera\Application
Data\npm\node_modules\generator-generator\node_modules\github\api\v3.0.0\index.js:30:19)
at C:\Documents and Settings\hegdera\Application Data\npm\node_modules\generator-generator\node_modules\github\api\v3.0.0\user.js:36:29
at ClientRequest. (C:\Documents and Settings\hegdera\Application
Data\npm\node_modules\generator-generator\node_modules\github\index.js:719:17)
at ClientRequest.EventEmitter.emit (events.js:95:17)
at CleartextStream.socketErrorListener (http.js:1547:9)
at CleartextStream.EventEmitter.emit (events.js:95:17)
at SecurePair. (tls.js:1392:15)
at SecurePair.EventEmitter.emit (events.js:95:17)
at SecurePair.error (tls.js:1012:27)
at CleartextStream.read [as _read] (tls.js:457:17)
Anyone tell me what is the problme ?

I installed generator-generator locally and ran the same command "yo generator" and it worked well.
I tested on Windows XP and Node v0.10.26 , yo v1.3.2.
The error you get has some issues related to proxy/ssl settings. Read this & this it may help resolve it.

Related

How to remove NEO4J from CE edition

I am using Neo4j CE .. there are system and neo4j databases.
-bash-4.2$ neo4j --version
neo4j 4.3.2
I am facing startup the NEO4J database..
neo4j#system> show databases;
| name | address | role | requestedStatus | currentStatus | error | default | home |
| "neo4j" | "awsneodevldb01.est1933.com:7687" | "standalone" | "online" | "offline" | "An error occurred! Unable to start DatabaseId{483e7f9b[neo4j]}." | TRUE | TRUE |
how can I find out why unable to start NEO4J
how to remove it and create an empty ENO4J
I recreate an empty ENO4J on CE. .. by ref. other post on this stackoverFlow.
stop neo4j
remove /var/lib/neo4j/data/databases/neo4j
remove /var/lib/neo4j/data/transactions/neo4j
start neo4j
You have to remove the neo4j directory under transactions too.
ref. you can find out why the neo4j database could not startup from following log file.
/var/log/neo4j/debug.log
Caused by: java.lang.RuntimeException: Fail to start 'DatabaseId{483e7f9b[neo4j]}' since transaction logs were found, while database files are missing.

Filecoin Textileio Powergate Not Enough Miners from Reputation Module to Satisfy The Constraints Error

I am running WSL Ubuntu 20.04 (Version 2 with Docker Desktop Support) within Windows 10 Pro Version 21H1
The steps are as follows:
git clone https://github.com/textileio/powergate.git
cd powergate/
cd docker/
nano docker-compose.yaml where I added "["lotus", "daemon", "--import-snapshot", "https://fil-chain-snapshots-fallback.s3.amazonaws.com/mainnet/minimal_finality_stateroots_latest.car"]" between lines 32 and 33.
make up
Waited for the node to finish importing and then syncing.
^C then make down then deleted the line "["lotus", "daemon", "--import-snapshot", "https://fil-chain-snapshots-fallback.s3.amazonaws.com/mainnet/minimal_finality_stateroots_latest.car"]" from docker-compose.yaml
make up
Now that the node was running I typed cd .. so I was in the repo's root directory, then make install-pow
with the pow command in my GOPATH I typed pow to make sure pow was linked fine to powd. It was.
pow admin users create
copied the token and ran export POW_TOKEN=<token copied to here>
Then pow wallet addrs and funded the address
I went to the directory behind the folder of my static website which is about 5GB in size.
I typed pow data stage <my-static-site-folder>
After it was finished staging and printed out the CID I typed pow config apply --watch <CID waited a long time while it said the job was executing and then I got...
---------------------------------------+--------------------------------+-------+-------+--------------
<job id here> | JOB_STATUS_FAILED executing | | |
| cold-storage config: making | | |
| deal configs: getting miners | | |
| from minerselector: getting | | |
| miners from reputation | | |
| module: not enough miners from | | |
| reputation module to satisfy | | |
| the constraints | | |
I don't understand what the problem is. I repeated the pow config apply --watch <CID command each time adding the --override flag with several different modifications to a custom config file. The content did appear briefly on IPFS (not Filecoin), but after I continued running the config apply command the site went down from IPFS.
This problem can be fixed by adding miners to the "trustedMiner" entry in the config file because pow doesn't necessary detect miners that fit your specs.
I went to a Filecoin miner info aggregation site (I used "https://filrep.io/") and added miners to the trustedMiner section of the config file used in the apply command to start a Filecoin deal.
For example the "trustedMiners" line in your config file should look like this:
"trustedMiners": ["<Miner Id>", "<Miner Id>","<Miner Id>", "<Miner Id>", ...],
with however many miners you want to add.
Then you would execute the command:
pow config apply --watch <CID> -o -c new-config-file.json
Btw the --watch flag is optional as it just allows you to see the status of the deal in real time.

Get-PSRepository, powershell warning: "Unable to find module repositories" while trying to install Docker in WindowsServer2016

I want to install Docker and so I tried the below command which gave an error
PS C:\Windows\system32> Install-Module -Name DockerMsftProvider
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'DockerMsftProvider'. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\ WindowsPowerShell\ Modules\ PowerShellGet\ 1.0.0.1\ PSModule .psm1:1772 char:21 $null = PackageManagement\Install-Package #PSBoundParameters CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception + FullyQualifiedErrorId : NoMatchFoundForCriteria, Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
even Install-Module -Name DockerMsftProvider -Repository PSGallery -Force gave the same error.
I tried the below resources and still its the same. I am not able to register a PSRepository. Only when this is installed I can install Docker in Windows Server. I spent hours to solve this still at 0% progress. Registering the PSRepository (Register-PSRepository -Default -InstallationPolicy Trusted) went fine without any errors but still its not visible.
Any possible help to solve this?
https://copdips.com/2018/05/setting-up-powershell-gallery-and-nuget-gallery-for-powershell.html
WARNING: Unable to find module repositories
Unable to find module providers
https://www.powershellgallery.com/packages/PowerShellGet/2.2.1
https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=Windows-Server#prerequisites
Try running this, do you still get an error?
[System.Net.WebRequest]::DefaultWebProxy = [System.Net.WebRequest]::GetSystemWebProxy()
[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
Install-Module -Name DockerMsftProvider -Scope AllUsers

Could not resolve view with name '/hello/index' in servlet with name 'grailsDispatcherServlet'

I am not able to open the controller on grails project
I am using the following versions of groovy and grails
C:\Users\Two95Admin>grails -version
Java HotSpot(TM) Client VM warning: TieredCompilation is disabled in this releas| Grails Version: 3.1.10
| Groovy Version: 2.4.7
| JVM Version: 1.8.0_74
C:\Users\Two95Admin>
I have successfully created the helloworld project using following commands
grails create-app helloworld
cd helllworld
grails
create-controller hello
run-app
My project is executed on localhost:8080
Screenshot of an Error Screen
Error 500: Internal Server Error
URI
/hello/index
Class
javax.servlet.ServletException
Message
Could not resolve view with name '/hello/index' in servlet with name 'grailsDispatcherServlet'
Trace
Line | Method
->> 1229 | render in org.springframework.web.servlet.DispatcherServlet
| 1029 | processDispatchResult in ''
| 973 | doDispatch . . . . . in ''
| 895 | doService in ''
| 967 | processRequest . . . in org.springframework.web.servlet.FrameworkServlet
| 858 | doGet in ''
Please help me solving the problem
It looks like grails-app/views/hello/index.gsp does not exist. You will need to create that file.
Before accessing hello page you should generate views. "grails generate-views hello" try this way. I think adding jsp file is not the correct way.

Install grails on ubuntu 13.10 amd64

I am new to use grails and i use amd64's ubuntu 13.10 . When i use gvm to install grails 2.3.2 successfully then type grails create-app test in my bash, it will appear to be some errors as follow:
Loading Grails 2.3.2
Error Error executing script sun.reflect.GeneratedConstructorAccessor1 cannot access
its superclass sun.reflect.ConstructorAccessorImpl
(Use --stacktrace to see the full trace)
When I just type grails,it will appears so errors:
Loading Grails 2.3.2
| Error java.lang.reflect.InvocationTargetException
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:606)
| Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:235)
| Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:263)
| Error Caused by: java.lang.IllegalAccessError: class sun.reflect.GeneratedConstructorAccessor1 cannot access its superclass sun.reflect.ConstructorAccessorImpl
| Error at sun.misc.Unsafe.defineClass(Native Method)
| Error at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
| Error at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
| Error at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:396)
| Error at java.security.AccessController.doPrivileged(Native Method)
| Error at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:395)
| Error at sun.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:94)
| Error at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:48)
| Error at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
| Error at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
...
I also use gvm to install groovy, but when i type groovy, it also has errors.
what's wrong about it ?
Please execute and allow Permission to the entire Grails folder like this one
Make grails executable have the right permission by just typing
`sudo chmod u+x /grailsdirectory/./grails`
`sudo chmod u+x grails-2.3.4 `
`chmod -R 777 /Your/folder/path/`
If you just want to make the files read and write assign permission to 766 instead.
Dude please re-install grails as follow :
sudo add-apt-repository ppa:groovy-dev/grails
sudo apt-get update
sudo apt-get install grails-ppa
to add grails 2.3.0 //in my case
sudo apt-get install grails 2.3.0
Then Don't forget to set permission to grails folder and executable also and Add the nessary environemnt varibles :
your JAVA_HOME directory setting
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.xx
#your GRAILS_HOME directory setting
export GRAILS_HOME=~/grails-1.0-RC2
#your PATH setting to append the Grails bin directory
export PATH=$PATH:$GRAILS_HOME/bin
And , groovy and grails zip package can also be downloaded and extracted to a folder that you want , thens setpermission and then Open or Insatll STS configure grails and groovy thier and ENVIRONEMNTVARIABLES to run grails from Command Line then That is all pretty simple trust me!
Usefull links :
Usefull Links:

Resources