Not able to install package in atom ide - package

I want to download some packages in atom ide, I am not able to do so.
I am getting following errors...
atom feature error image
Fetching featured packages failed.Hide output…
C:\Users\prits\AppData\Local\atom\app-1.63.1\resources\app\apm\lib\featured.js:60
packages = body.filter(function(pack) {
^
TypeError: body.filter is not a function
at C:\Users\prits\AppData\Local\atom\app-1.63.1\resources\app\apm\lib\featured.js:60:27
at Request._callback (C:\Users\prits\AppData\Local\atom\app-1.63.1\resources\app\apm\lib\request.js:57:22)
at Request.self.callback (C:\Users\prits\AppData\Local\atom\app-1.63.1\resources\app\apm\node_modules\request\request.js:185:22)
at Request.emit (events.js:223:5)
at Request.<anonymous> (C:\Users\prits\AppData\Local\atom\app-1.63.1\resources\app\apm\node_modules\request\request.js:1154:10)
at Request.emit (events.js:223:5)
at IncomingMessage.<anonymous> (C:\Users\prits\AppData\Local\atom\app-1.63.1\resources\app\apm\node_modules\request\request.js:1076:12)
at Object.onceWrapper (events.js:312:28)
at IncomingMessage.emit (events.js:228:7)
at endReadableNT (_stream_readable.js:1185:12)
I was trying to download so packages in atom ide

Related

gradlew.bat exited with non-zero code: 1 React Native

I'm just trying to run a simple and empty react native project in android emulator but I'm getting this error anyone have any ideas?
error:
Error: C:\Users\Onur\Desktop\ReactNative\MemorizingApp\android\gradlew.bat exited with non-zero code: 1
Error: C:\Users\Onur\Desktop\ReactNative\MemorizingApp\android\gradlew.bat exited with non-zero code: 1
at ChildProcess.completionListener (C:\Users\Onur\Desktop\ReactNative\MemorizingApp\node_modules#expo\spawn-async\build\spawnAsync.js:52:23)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.cp.emit (C:\Users\Onur\Desktop\ReactNative\MemorizingApp\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1093:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
...
at Object.spawnAsync [as default] (C:\Users\Onur\Desktop\ReactNative\MemorizingApp\node_modules#expo\spawn-async\build\spawnAsync.js:17:21)
at spawnGradleAsync (C:\Users\Onur\Desktop\ReactNative\MemorizingApp\node_modules#expo\cli\build\src\start\platforms\android\gradle.js:72:46)
at Object.assembleAsync (C:\Users\Onur\Desktop\ReactNative\MemorizingApp\node_modules#expo\cli\build\src\start\platforms\android\gradle.js:52:18)
at runAndroidAsync (C:\Users\Onur\Desktop\ReactNative\MemorizingApp\node_modules#expo\cli\build\src\run\android\runAndroidAsync.js:31:24)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Create an ANDROID_SDK_ROOT variable in your system variables.
Add a path to your android SDK.
Solved the issue for me

When I write npx create-react-app-my-app " in CMD windows I m getting an error. I've installed Node.js : C:\Users\dev>node --version v15.4.0****

When I write npx create-react-app-my-app in CMD windows I'm getting an error.
I have installed Node.js:
C:\Users\dev>node --version
v15.4.0
error:
node:internal/modules/cjs/loader:928
throw err;
^
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
at Function.Module._load (node:internal/modules/cjs/loader:769:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
node:internal/modules/cjs/loader:928
throw err;
^
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npx-cli.js'
[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)[39m
[90m at Function.Module._load (node:internal/modules/cjs/loader:769:27)[39m
[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)[39m
[90m at node:internal/main/run_main_module:17:47[39m {
code: [32m'MODULE_NOT_FOUND'[39m,
requireStack: []
}
What you need is npx create-react-app my-app.
You can replace 'my-app' with what you want to name the application. Your command is currently missing the space.
please add the command below, I hope this solves your problem:
node ./src/index.js
#Danila Volosov the author uses CMD and Windows as mentioned in OP, and rm -rf does not work on Windows.
NPM is looking for npm-cli.js under C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\, which is wrong and doesn't exist. This occurs when the path is set wrongly, so find the following in the PATH env:
C:\Program Files\nodejs\node_modules\npm\bin
and replace it with
C:\Program Files\nodejs
It'll probably work after this.
You can also take a look at the following:
NPM: npm-cli.js not found when running npm

Azure Devops Failing on npm install (Cannot find module 'Selenium-Webdriver'

I am trying to integrate Selenium IDE with Azure devops test plan
I have an "NPM install" task in my release pipeline and received an error of Error: Npm failed with return code: 1
This is the error from the log:
2020-10-12T22:37:37.9680875Z [command]C:\windows\system32\cmd.exe /D /S /C ""C:\Program Files\nodejs\npm.cmd" test"
2020-10-12T22:38:16.6366869Z
2020-10-12T22:38:16.6367643Z > ind#1.0.0 test D:\a\r1\a\Test_IND-CI \drop\Selenium IDE
2020-10-12T22:38:16.6368107Z > npx mocha --reporter xunit > result.xml
2020-10-12T22:38:16.6368363Z
2020-10-12T22:38:16.6368738Z npx: installed 136 in 32.857s
2020-10-12T22:38:16.6368973Z
2020-10-12T22:38:16.6369245Z Error: Cannot find module 'selenium-webdriver'
2020-10-12T22:38:16.6369465Z Require stack:
2020-10-12T22:38:16.6369714Z - D:\a\r1\a\Test_IND-CI \drop\Selenium IDE\test.js
2020-10-12T22:38:16.6370004Z - C:\npm\cache\_npx\5920\node_modules\mocha\lib\esm-utils.js
2020-10-12T22:38:16.6370300Z - C:\npm\cache\_npx\5920\node_modules\mocha\lib\mocha.js
2020-10-12T22:38:16.6370850Z - C:\npm\cache\_npx\5920\node_modules\mocha\lib\cli\one-and-dones.js
2020-10-12T22:38:16.6371232Z - C:\npm\cache\_npx\5920\node_modules\mocha\lib\cli\options.js
2020-10-12T22:38:16.6371553Z - C:\npm\cache\_npx\5920\node_modules\mocha\bin\mocha
2020-10-12T22:38:16.6371883Z at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
2020-10-12T22:38:16.6372236Z at Function.Module._load (internal/modules/cjs/loader.js:841:27)
2020-10-12T22:38:16.6372757Z at Module.require (internal/modules/cjs/loader.js:1025:19)
2020-10-12T22:38:16.6373259Z at require (internal/modules/cjs/helpers.js:72:18)
2020-10-12T22:38:16.6373925Z at Object.<anonymous> (D:\a\r1\a\Test_IND-CI \drop\Selenium IDE\test.js:2:37)
2020-10-12T22:38:16.6374606Z at Module._compile (internal/modules/cjs/loader.js:1137:30)
2020-10-12T22:38:16.6374983Z at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
2020-10-12T22:38:16.6375320Z at Module.load (internal/modules/cjs/loader.js:985:32)
2020-10-12T22:38:16.6375644Z at Function.Module._load (internal/modules/cjs/loader.js:878:14)
2020-10-12T22:38:16.6375999Z at Module.require (internal/modules/cjs/loader.js:1025:19)
2020-10-12T22:38:16.6382142Z at require (internal/modules/cjs/helpers.js:72:18)
2020-10-12T22:38:16.6382865Z at Object.exports.requireOrImport (C:\npm\cache\_npx\5920\node_modules\mocha\lib\esm-utils.js:20:12)
2020-10-12T22:38:16.6385244Z at Object.exports.loadFilesAsync (C:\npm\cache\_npx\5920\node_modules\mocha\lib\esm-utils.js:33:34)
2020-10-12T22:38:16.6385856Z at Mocha.loadFilesAsync (C:\npm\cache\_npx\5920\node_modules\mocha\lib\mocha.js:427:19)
2020-10-12T22:38:16.6387258Z at singleRun (C:\npm\cache\_npx\5920\node_modules\mocha\lib\cli\run-helpers.js:156:15)
2020-10-12T22:38:16.6388582Z at exports.runMocha (C:\npm\cache\_npx\5920\node_modules\mocha\lib\cli\run-helpers.js:225:10)
2020-10-12T22:38:16.6389265Z at Object.exports.handler (C:\npm\cache\_npx\5920\node_modules\mocha\lib\cli\run.js:366:11)
2020-10-12T22:38:16.6390655Z at C:\npm\cache\_npx\5920\node_modules\mocha\node_modules\yargs\lib\command.js:241:49
2020-10-12T22:38:16.6391922Z npm ERR! Test failed. See above for more details.
2020-10-12T22:38:16.6590665Z ##[warning]Couldn't find a debug log in the cache or working directory
2020-10-12T22:38:16.6612445Z ##[error]Error: Npm failed with return code: 1
This is the settings of my npm install task:
Azure Devops Failing on npm install (Cannot find module 'Selenium-Webdriver'
According to the error message:
Error: Cannot find module 'selenium-webdriver'
And the configuration screenshot of the build definition, we could to know that you execute the npm test directly without the packages. we need to use npm install command line to ensure that all the packages are installed:
npm install selenium-webdriver --save or npm install
You could check this thread for some more details.

Node-red write data on file

I have some trouble in use node File in node-red,
I received the following error:
TypeError: this is not a typed array.
at Function.from (native)
at FileNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/storage/50-file.js:67:39)
at emitOne (events.js:77:13)
at FileNode.emit (events.js:169:7)
at FileNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)
at InjectNode.Node.send (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:137:22)
at InjectNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/core/20-inject.js:77:22)
at emitOne (events.js:77:13)
at InjectNode.emit (events.js:169:7)
at InjectNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)
I put a picture to show it better.
How I can fix it?
Note:
As asked
Node-RED version: v0.18.4
Node.js version: v4.2.6
The node configuration is here
You are using a quite old version of Node.js. Most likely the root cause of your issue is the same for the one reported here: Getting TypeError: this is not a typed array using Buffer.from in mocha
It is worth to upgrade your Node.js to 6.x.x or newer.
Note: I replicated your flow in my system, running:
Node-RED version: v0.19.1 and Node.js version: v8.11.1
and it works flawlessly.

Having issues opening Deployd dashboard

I am a beginner with Deployd (www.deployd.com). I am learning the book "Pro AngularJS" and I have followed at the beginning of chapter 6 all the instructions in order to open the Deployd dashboard in the browser but am getting errors at the command prompt and the dashboard's refuses to open in the browser.
The page keeps on loading till it stops and displays that the server is not found. I also followed the steps on Deployd's page and I still get the same errors.
The error I receive at the prompt is:
Unhandled rejection TypeError: Cannot read property 'insert' of undefined
at C:\Program Files\Deployd\node_modules\deployd\lib\db.js:262:8
at C:\Program Files\Deployd\node_modules\deployd\lib\db.js:155:12
at tryCatcher (C:\Program Files\Deployd\node_modules\deployd\node_modules\bl
uebird\js\main\util.js:24:31)
at Promise._settlePromiseFromHandler (C:\Program Files\Deployd\node_modules\
deployd\node_modules\bluebird\js\main\promise.js:454:31)
at Promise._settlePromiseAt (C:\Program Files\Deployd\node_modules\deployd\n
ode_modules\bluebird\js\main\promise.js:530:18)
at Promise._settlePromises (C:\Program Files\Deployd\node_modules\deployd\no
de_modules\bluebird\js\main\promise.js:646:14)
at Async._drainQueue (C:\Program Files\Deployd\node_modules\deployd\node_mod
ules\bluebird\js\main\async.js:79:16)
at Async._drainQueues (C:\Program Files\Deployd\node_modules\deployd\node_mo
dules\bluebird\js\main\async.js:89:10)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Program Files\Deployd\n
ode_modules\deployd\node_modules\bluebird\js\main\async.js:14:14)
at processImmediate [as _immediateCallback] (timers.js:367:17)
Unhandled rejection TypeError: Cannot read property 'insert' of undefined
at C:\Program Files\Deployd\node_modules\deployd\lib\db.js:262:8
at C:\Program Files\Deployd\node_modules\deployd\lib\db.js:155:12
at tryCatcher (C:\Program Files\Deployd\node_modules\deployd\node_modules\bl
uebird\js\main\util.js:24:31)
at Promise._settlePromiseFromHandler (C:\Program Files\Deployd\node_modules\
deployd\node_modules\bluebird\js\main\promise.js:454:31)
at Promise._settlePromiseAt (C:\Program Files\Deployd\node_modules\deployd\n
ode_modules\bluebird\js\main\promise.js:530:18)
at Promise._settlePromises (C:\Program Files\Deployd\node_modules\deployd\no
de_modules\bluebird\js\main\promise.js:646:14)
at Async._drainQueue (C:\Program Files\Deployd\node_modules\deployd\node_mod
ules\bluebird\js\main\async.js:79:16)
at Async._drainQueues (C:\Program Files\Deployd\node_modules\deployd\node_mo
dules\bluebird\js\main\async.js:89:10)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Program Files\Deployd\n
ode_modules\deployd\node_modules\bluebird\js\main\async.js:14:14)
at processImmediate [as _immediateCallback] (timers.js:367:17)
Note: any time I type a command at the Deployd console I get the following message at the prompt:
js-bson: Failed to load c++ bson extension, using pure JS version
before the results of the prompt appears. I don't know if it is also part of the problem. It is my first time trying to use Deployd so I have no clue what these errors mean.
Check your bson installation. If you have not noticed the bson errors in red letters in the console while installing
npm install deployd -g
try update with,
npm update
To get the bson package correctly installed in your system you need, python and c++ compilers in the right path in your system.
Here is the link that shows many options to get the bson package installed properly.
http://techtothepoint.blogspot.com/2015/03/npm-install-errors-buildreleasebson.html

Resources