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
Related
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
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 run create react-app in terminal it display some errors.
npx create react-app sample
Error: EPERM: operation not permitted, mkdir 'C:\Users\Yasiru'
TypeError: Cannot read property 'loaded' of undefined
at exit (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:98:27)
at errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:216:3)
at C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js:77:20
at cb (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:225:22)
at C:\Program Files\nodejs\node_modules\npm\lib\npm.js:263:24
at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:83:7
at Array.forEach (<anonymous>)
at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:82:13
at f (C:\Program Files\nodejs\node_modules\npm\node_modules\once\once.js:25:25)
at afterExtras (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:173:20)
C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:98
var doExit = npm.config.loaded ? npm.config.get('_exit') : true
^
TypeError: Cannot read property 'loaded' of undefined
at exit (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:98:27)
at process.errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:216:3)
at process.emit (events.js:196:13)
at process._fatalException (internal/process/execution.js:142:25)
Install for [ 'create#latest' ] failed with code 7
When you install create-react-app globally, you do not need to run the command with npm/npx/yarn. It is its own binary, so all you should have to type is "create-react-app directory" where 'directory' is the directory you want to create the react app within.
Also, it looks like the command you're running is "create react-app" rather than "create-react-app", make sure you do not miss the first dash or you will not be running the correct command.
delete node.js and download from node.js LTS and when you install in you computer click all the approval boxes and check the version of npm>5 and node.js and your internet ,good luck;)
Open Windows PowerShell(Admin)
then paste this and make sure to change name from Aamir~Naved to your name and similary if your name has more than one word,kindly add a tilde(~) in between:
npm config set cache "C:\\Users\\Aamir~Naved\\AppData\\Roaming\\npm-cache" --global
then paste this:(make sure to edit directory_name with name of the directory you want to create react app in. for example: C:\learnreact
npx create-react-app directory_name
I just went through this and found that all I had to do was to give write permission to the folder in which I wanted to create the app. Hope it's that simple for you.
I get this error when trying to create a new react app.
Tried updating create-react-app using npm and reinstalling React.
C:\Users\Panduka\Documents\tests>create-react-app markdown
path.js:33
function normalizeStringWin32(path, allowAboveRoot) {
^
RangeError: Maximum call stack size exceeded
at normalizeStringWin32 (path.js:33:30)
at Object.resolve (path.js:338:20)
at getRootPath (C:\Users\Panduka\AppData\Roaming\npm\node_modules\create-react-app\node_modules\fs-extra\lib\mkdirs\win32.js:6:27)
at invalidWin32Path (C:\Users\Panduka\AppData\Roaming\npm\node_modules\create-react-app\node_modules\fs-extra\lib\mkdirs\win32.js:16:12)
at mkdirsSync (C:\Users\Panduka\AppData\Roaming\npm\node_modules\create-react-app\node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:15:39)
at mkdirsSync (C:\Users\Panduka\AppData\Roaming\npm\node_modules\create-react-app\node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:35:16)
at mkdirsSync (C:\Users\Panduka\AppData\Roaming\npm\node_modules\create-react-app\node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:36:9)
at mkdirsSync (C:\Users\Panduka\AppData\Roaming\npm\node_modules\create-react-app\node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:36:9)
at mkdirsSync (C:\Users\Panduka\AppData\Roaming\npm\node_modules\create-react-app\node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:36:9)
at mkdirsSync (C:\Users\Panduka\AppData\Roaming\npm\node_modules\create-react-app\node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:36:9)
Fixed this issue by disabling Windows Defender - Controlled Folder Access.
I faced a similar issue today and fixed with running: $ npm logout
Error Log:
4268 http fetch GET 404 https://registry.npmjs.org/#xtuc%2flong 549ms
4269 silly fetchPackageMetaData error for #xtuc/long#4.2.1 404 Not Found: #xtuc/long#4.2.1
4270 verbose stack RangeError: Maximum call stack size exceeded
4270 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:378:27)
4270 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:396:9)
4270 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:396:9)
4270 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:396:9)```
Disabling Controlled Folder access helped
Fixed this issue by using Windows Subsystem Linux.
BTW, my Windows Defender is controlled by my organization policies.
So all I am trying to do is start the tutorial for angular but I am having a biggest pain trying to install all of the programs to get going. When I put in the code "npm install" it gives me this:
$ npm install
Error: EPERM, mkdir 'C:\Program Files (x86)\Git\angular-phonecat'
at Error (native)
Error: Uncaught, unspecified "error" event.
at Error (native)
at emit (events.js:87:13)
at cleanupSync (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\
fs-write-stream-atomic\index.js:46:42)
at WriteStream.emit (c:\Program Files (x86)\nodejs\node_modules\npm\node_mod
ules\fs-write-stream-atomic\index.js:53:12)
at WriteStream.<anonymous> (evalmachine.<anonymous>:1777:12)
at OpenReq.Req.done (c:\Program Files (x86)\nodejs\node_modules\npm\node_mod
ules\graceful-fs\graceful-fs.js:141:5)
at OpenReq.done (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules
\graceful-fs\graceful-fs.js:61:22)
at FSReqWrap.oncomplete (evalmachine.<anonymous>:99:15)
If someone could help that would be awesome I just want to get started on Angular.
You're trying to install to C:\Program Files (x86), which needs extra permissions. Either start your shell with admin rights, or better install it somewhere else.
I believe you need to disable AntiVirus software on Windows, and then try again.
https://github.com/Medium/phantomjs/issues/19