Unable to access ExtJS 7.5.0 sample application - extjs

I recently got myself into ExtJS. Followed the 'Getting started with NPM' and run a fresh modern-app sample. While the sample does seem to run, I noticed the following error.
i [ext]: [ERR] [ERR] Error: spawn
/home/mahas/projects/extjs/cool-universal-app/node_modules/#sencha/cmd/dist/sencha
EACCES at Process.ChildProcess._handle.onexit
(node:internal/child_process:282:19) at onErrorNT
(node:internal/child_process:477:16) at processTicksAndRejections
(node:internal/process/task_queues:83:21)
My browser endlessly loading the app and this warning appeared on my console
<i> [webpack-dev-middleware] wait until bundle finished: /
I have tried to wait several minutes just in case of Webpack actually bundling assets but the same warning appeared.

The problem is solved simply by the command:
chmod 777 "/home/mahas/projects/extjs/cool-universal-app/node_modules/#sencha/cmd/dist/sencha"

Khusamov Sukhrob solution works.
Using chmod 777 your_project_path/node_modules/#sencha/cmd/dist/sencha can make npm run dev work for your sencha app.
Alternatively, you can still use classic sencha cmd, sencha app build development and sencha app watch, to develop and start your sencha app.

Related

Need help deploying react application with netlify

Not familiar with how to use netlify. Im trying to deploy this app
https://github.com/Rshauneb/real-estate
my build command is:
npm run watch
but every time I try to deploy my site I keep getting this error.
"failed during stage 'building site'"
Any suggestions?
Mimic what Netlify is doing in the build using their build bot.
Clone your project into a clean directory from GitHub
npm install
npm run watch
If you do not get an error, you may have a global command or setting that does not get set on Netlify. Without more information, this is the only answer possible.
Here is the error I found when I did the above:
Problem #2
Watch is a command for local development, so you should not be using npm run watch as a build command on Netlify. You will need to run the command to build your site into a directory for deploy and use that directory for your "Deploy directory".

Yeoman/Gulp throwing 'spawn gulp ENOENT' error on a Mac

Please note: I do see this question as well as this one but those were both instances where the developer was on Windows, and the solution was Windows-specific. I am on a Mac! Please don't closevote as a duplicate!!!
Mac 10.12.6 here. I'm new to AngularJS (v1.x) and am trying to follow this tutorial on using Yeoman to create an internationalized AngularJS app.
I install the Yeoman AngularJS generator and create a directory for my simple/test app:
npm install -g generator-angular
mkdir angular-translate-yeoman && cd $_
Then I go to create my internationalization AngularJS app:
yo angular translate
It asks me a bunch of questions, I select gulp instead of grunt, and then starts generating the scaffolding. About a minute later I get the following error:
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn gulp ENOENT
at exports._errnoException (util.js:1020:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
Anybody have any idea what the problem is and what the fix is?
I'm leaving this question up rather than deleting it. The problem was that I didn't have gulp installed, and the tutorial I was using never bothered to mentioned installing gulp as a pre-requisite. Not knowing anything about Yeoman, I guess I figured it would install any JS dependencies for me.
So this is the error you'll receive when you're on a Mac and using Yeoman + Gulp together, but Gulp isn't installed on your machine. To install Gulp:
npm install gulp-cli -g
npm install gulp -D
touch gulpfile.js
gulp --help

Can't deploy my app to github-pages with react-create-app

I've recently finished building my app, using react-create-app, but I can't load it on github pages. It builds a production version without any problems, but whenever I enter "npm run deploy" into the console I get the following error:
Error: spawn git ENOENT
at exports._errnoException (util.js:1033:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:425:7)
at startup (bootstrap_node.js:146:9)
at bootstrap_node.js:540:3
I'll leave a link to my package.json since I can't seem to make it look neat here: https://github.com/Umbrella1234/movie-app/blob/master/package.json
Do you have any ideas how to make it work?
If you are using Windows, make sure you have installed Git for Windows from here.
Considering you have taken the previous steps correctly, after installing Git for Windows, running npm run deploy creates an optimized production build and deploy it on GitHub pages. If you haven't logged in to Github for windows app before, Github app pops up and asks you to enter your username and password. When you've done that the deploy process will continue and uploads the production build on GitHub pages.
Sometimes Windows Powershell or even 3rd-Party software have trouble integrating with git.
One solution is to use Git Bash or whichever tool you know has works when trying to make commits. Navigate to the app directory using cd and then type npm run deploy inside of git bash. This should be able to connect to github no problem and fix your error.

ionic 1.3 does not start new app

I installed ionic v 1.3 which was successfully installed(means there were no errors during installation). After installing, when I ran following command
ionic start myApp tabs
then it gives below outputs
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================] 100% 0.0s
Installing npm packages...
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
Caught exception:
undefined
Then I also ran below command in project directory
ionic serve
which gives me below output
Couldn't find ionic.config.json file. Are you in an Ionic project?
I also uninstall and reinstall ionic but still getting above errors.
How can I solve these problems?
Based on this ionic 2 start fails with error with the spawned command I'm guessing you may need to update your version of node and npm.

Angular - Error: spawn cmd ENOENT

Hi I have problem when I generate angular - yo angular.
I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.
invoke angular:route
invoke angular:controller:C:\Users\david\AppData\Roaming\npm\node_modules\generator-angular\route\index.js
create app\scripts\controllers\about.js
events.js:85
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
at child_process.js:1144:20
at process._tickCallback (node.js:355:11)
Anyone show me how to solve this issue? Thanks.
Im not sure why this error comes about, however i managed to run my Angular application by running with : ng serve instead of ng serve --open . Please not you will need to copy the url manually and place it in the browser afterwards which should be http://localhost:4200/
I got the same issue for windows 8 and tried several installations after doing changes to AppData/Roaming folder. None of the solutions worked for me. The issue is because of an environment variable of your system path is missing . Add "C:\Windows\System32\" value to your system PATH variable.
this error occurs when your terminal is not having access to open browers or admin permision try running your terminal as admin
I've got this issue after updating Angular CLI to 11.0.2 and I've been spent a lot of time to resolve this,
Apparently, I've tried the default port to serve my project and it served without any errors. which is http://localhost:4200/ but, I needed to run on http://localhost:8000/ So I did this....
First of all try remove node_modules from your directory and re-install npm packages. (I'm saying this because, some users got resolved the issue) to re-install npm packages, run
npm i
or run below command
npm install
if this didn't work, try adding the port number to the angular.json file.
search for serve options in the json file.
then add your desired port number like this "port": 8000,
(P.S. 'WorkspaceUI' means my project name and I've been trying to run on '8000' port. you can run on your own port number.) Then run your project using ng serve command. Thank you!
There are many guesses on different portal for this error and none of them works. Here is the solution -
Run this command to install angular cli before performing anything -
npm install -g #angular/cli

Resources