Error with running bower init on interactive mode in git bash - node.js

$ bower init --config.interactive
bower error Cannot read property 'substring' of undefined
Stack trace: TypeError: Cannot read property 'substring' of undefined
at Interface.rl._getCursorPos (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\node_modules\readline2\index.js:51:51)
at ScreenManager.render (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\lib\utils\screen-manager.js:19:27)
at Prompt.render (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\lib\prompts\input.js:75:15)
at Prompt._run (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\lib\prompts\input.js:49:8)
at Prompt.run (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\lib\prompts\base.js:57:8)
at Object. (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\lib\ui\prompt.js:84:12)
at module.exports (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\node_modules\run-async\index.js:15:21)
at AnonymousObservable.__subscribe (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\lib\utils\utils.js:16:7)
at AnonymousObservable.tryCatcher (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:63:31)
at setDisposable (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\node_modules\rx-lite\rx.lite.js:5741:44)
Console trace: Error
at StandardRenderer.error (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\lib\renderers\StandardRenderer.js:82:37)
at Logger. (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\bin\bower:110:22)
at emitOne (events.js:77:13)
at Logger.emit (events.js:169:7)
at Logger.emit (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\bower-logger\lib\Logger.js:29:39)
at C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\lib\commands\index.js:48:20
at _rejected (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:844:24)
at C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:870:30
at Promise.when (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:1122:31)
at Promise.promise.promiseDispatch (C:\Users\dolap_000\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:788:41)
System info:
Bower version: 1.6.5
Node version: 5.0.0
OS: Windows_NT 10.0.10586 x64

Related

React native with expo error when running np, start/expo start command

I'm having issues running expo start/npm start/yarn start command. When running these commands it stars to this point.
PS C:\Users\Administrator\Documents\EdwardFiles\javascript\React-projects\demo> yarn start
yarn run v1.22.19
warning ..\..\..\..\..\package.json: No license field
$ expo start
Starting project at C:\Users\Administrator\Documents\EdwardFiles\javascript\React-projects\demo
Developer tools running on http://localhost:19002
Starting Metro Bundler
Then it throws an error below.
C:\Users\Administrator\Documents\EdwardFiles\javascript\React-projects\demo\node_modules\metro-hermes-compiler\src\emhermesc.js:77
throw ex;
^
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at ChildProcess.<anonymous> (C:\Users\Administrator\Documents\EdwardFiles\javascript\React-projects\demo\node_modules\fb-watchman\index.js:205:22)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:527:28)
at Pipe.<anonymous> (node:net:709:12)
Emitted 'error' event on Client instance at:
at ChildProcess.<anonymous> (C:\Users\Administrator\Documents\EdwardFiles\javascript\React-projects\demo\node_modules\fb-watchman\index.js:214:12)
at ChildProcess.emit (node:events:527:28)
[... lines matching original stack trace ...]
at Pipe.<anonymous> (node:net:709:12)
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS C:\Users\Administrator\Documents\EdwardFiles\javascript\React-projects\demo>
I have tried the following.
running npm update
npm audit fix --force
uninstalling metro and fb-watchman
installing metro and fb-watchman manually.
uninstalled node and installed node version 16.16.0 LTS
installed expo-cli
Still facing the same issue.

Issues with Bower on Ubuntu

Currently having issues with using Bower on Ubuntu
I attempt to use bower install, bower init and I am advised not to use sudo, but when I do I get the following error
bower EACCES EACCES: permission denied, open '/var/www/xxxxxx/html/wp-content/themes/xxxxxxxx/bower.json'
Stack trace:
Error: EACCES: permission denied, open '/var/www/xxxxxx/html/wp-content/themes/xxxxxxxx/bower.json'
at Error (native)
Console trace:
Error
at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:81:37)
at Logger. (/usr/local/lib/node_modules/bower/lib/bin/bower.js:110:26)
at emitOne (events.js:77:13)
at Logger.emit (events.js:169:7)
at Logger.emit (/usr/local/lib/node_modules/bower/lib/node_modules/bower-logger/lib/Logger.js:29:39)
at /usr/local/lib/node_modules/bower/lib/commands/index.js:48:20
at _rejected (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:844:24)
at /usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:870:30
at Promise.when (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:1122:31)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:788:41)
System info:
Bower version: 1.7.9
Node version: 4.2.6
OS: Linux 4.4.0-36-generic x64
The only thing that works is the following sudo bower install --allow-roots
Is there any way around this ?
You have to have permission to the directory you are trying to install files in. So you have to use bower as a user who has access to this folder (eg www-data on Ubuntu: sudo -u www-data bower install)

Haskell-ghc-mod: ghc-mod failed to launch. It is probably missing or misconfigured. ENOENT

Error: spawn ghc-mod ENOENT
PATH: /usr/bin:/bin:/usr/sbin:/sbin
path: undefined
Path: undefined
Hide Stack Trace
Error
at /Users/Mauritius/.atom/packages/haskell-ghc-mod/lib/ghc-mod/ghc-modi-process.coffee:60:28
at exithandler (child_process.js:222:5)
at ChildProcess.errorhandler (child_process.js:229:5)
at emitOne (events.js:77:13)
at ChildProcess.emit (events.js:169:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17
i ran into this problem right now, what i have done is to go Atom , in the header press Atom ->Preferences then Package, for the ide-haskell package go to setting and set the path for stylish-haskell, then for haskell-ghc-mode package also set up ghc mod and ghc modi path

Configure Karma to use global PhantomJS install on Linux Jenkins

I'm trying to get my Karma Unit tests to run on a remote Jenkins server. This Jenkins server is running on Linux with an old version of PhantomJS already installed and PHANTOMJS_BIN defined in the env. I'm using the gulp-karma and karma-phantomjs-launcher-nonet packages to run the karma tests.
However, when jenkins fires Karma, it seems to be unable to spawn PhantomJS. I get the following error:
[13:33:00] Starting Karma server... [32mINFO [karma]: [39mKarma v0.12.37 server started at http://localhost:9876/ [32mINFO [launcher]: [39mStarting browser PhantomJS [31mERROR [karma]: [39m{ [Error: spawn EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'spawn' } Error: spawn EACCES at exports._errnoException (util.js:874:11) at ChildProcess.spawn (internal/child_process.js:298:11) at exports.spawn (child_process.js:339:9) at Object._execCommand (/appl/jenkins/workspace/ps-lib/node_modules/karma/lib/launchers/process.js:63:21) at Object._start (/appl/jenkins/workspace/ps-lib/node_modules/karma-phantomjs-launcher-nonet/index.js:40:10) at Object. (/appl/jenkins/workspace/ps-lib/node_modules/karma/lib/launchers/process.js:14:10) at emitOne (events.js:82:20) at Object.emit (events.js:169:7) at Object.start (/appl/jenkins/workspace/ps-lib/node_modules/karma/lib/launchers/base.js:40:10) at /appl/jenkins/workspace/ps-lib/node_modules/karma/lib/launcher.js:88:15 at Array.forEach (native) at [object Object].launch (/appl/jenkins/workspace/ps-lib/node_modules/karma/lib/launcher.js:40:11) at [object Object].invoke (/appl/jenkins/workspace/ps-lib/node_modules/karma/node_modules/di/lib/injector.js:75:15) at Server. (/appl/jenkins/workspace/ps-lib/node_modules/karma/lib/server.js:62:18) at Server.g (events.js:260:16) at emitNone (events.js:72:20) at Server.emit (events.js:166:7) at emitListeningNT (net.js:1260:10) at doNTCallback1 (node.js:430:9) at process._tickCallback (node.js:352:17)
/appl/jenkins/workspace/ps-lib/tasks/test.js:15 throw err; ^
Error: karma exited with code 1
at done (/appl/jenkins/workspace/ps-lib/node_modules/gulp-karma/index.js:56:30)
at ChildProcess. (/appl/jenkins/workspace/ps-lib/node_modules/gulp-karma/index.js:82:7)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
So it seems to me that my karma is unable to run PhantomJS due to authorisation reasons, am I right? Still the phantomjs installation is done with user jenkins//jenkins so jenkins should be able to run it, right?

"bower list" error messages

I'm using Windows 7 64-bit. When I execute the command bower list from the command prompt, it shows the following errors:
D:\ng>bower list
bower check-new Checking for new versions of the project dependencies..
bower error Request to https://bower.herokuapp.com/packages/bootstrap fa
iled: 6512:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:o
penssl\ssl\s23_clnt.c:787:
Stack trace:
Error: Request to https://bower.herokuapp.com/packages/bootstrap failed: 6512:er
ror:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s2
3_clnt.c:787:
at createError (C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_modules\bow
er\node_modules\bower-registry-client\lib\util\createError.js:2:15)
at Request._callback (C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_modul
es\bower\node_modules\bower-registry-client\lib\lookup.js:98:29)
at self.callback (C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_modules\b
ower\node_modules\bower-registry-client\node_modules\request\request.js:129:22)
at Request.EventEmitter.emit (events.js:95:17)
at Request.request.emit (C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_mo
dules\bower\node_modules\bower-registry-client\node_modules\request-replay\index
.js:69:33)
at ClientRequest.self.clientErrorHandler (C:\Users\xxxxx.xxxxxxxx\AppData\Ro
aming\npm\node_modules\bower\node_modules\bower-registry-client\node_modules\req
uest\request.js:239:10)
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.<anonymous> (tls.js:1400:15)
Console trace:
Trace
at StandardRenderer.error (C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_
modules\bower\lib\renderers\StandardRenderer.js:72:17)
at Logger.<anonymous> (C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_modu
les\bower\bin\bower:111:22)
at Logger.EventEmitter.emit (events.js:95:17)
at Logger.emit (C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_modules\bow
er\node_modules\bower-logger\lib\Logger.js:29:39)
at C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_modules\bower\lib\comman
ds\index.js:40:20
at _rejected (C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_modules\bower
\node_modules\q\q.js:797:24)
at C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_modules\bower\node_modul
es\q\q.js:823:30
at Promise.when (C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_modules\bo
wer\node_modules\q\q.js:1035:31)
at Promise.promise.promiseDispatch (C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\
npm\node_modules\bower\node_modules\q\q.js:741:41)
at C:\Users\xxxxx.xxxxxxxx\AppData\Roaming\npm\node_modules\bower\node_modul
es\q\q.js:557:44
System info:
Bower version: 1.3.8
Node version: 0.10.28
OS: Windows_NT 6.1.7601 ia32
Does anyone know what causes this error?

Resources