UPDATE:
I performed my upgrade using the manual steps and it worked fine.
Afterwards, I noticed that version 4.3.0 has a new --verbose flag, so I ran it again with the --force flag. It still hangs with no error at yarn run webpack:build.
I then ran yarn webpack:build by itself. It looked like it completed everything, but did not return control to the console. I noticed a yellow message box in my taskbar notification area, that says 'JHipster' Notification Image. When I click on that notification, the job completes and control returns to the console. (I have noticed this notification looks different on Win10 and I don't think it requires a click to dismiss.)
This notification does not appear when running jhipster:upgrade, so I am guessing that is what is hanging up the process.
(original post)
I have generated a jhipster project (4.1.1) and have been working with it. I tried to run jhipster:upgrade to 4.2.0 but the process never completes. (I left it overnight.)
I set up and repeated this process on another computer, and it runs fine.
I have tried to identify why/where the process is hanging on my main computer but have been unsuccessful.
Anyone have some steps, tips to identify what is going wrong?
My environment:
Win7 Enterprise
java version "1.8.0_74"
git version 2.12.0.windows.1
node v6.10.2
yarn 0.21.3
Command output:
C:\applications\jhipster\formsLib>yo jhipster:upgrade
Welcome to the JHipster Upgrade Sub-Generator
This will upgrade your current application codebase to the latest JHipster version
Looking for latest generator-jhipster version...
New generator-jhipster version found: 4.2.0
Git repository detected
Updating generator-jhipster to 4.2.0 . This might take some time...
Several node processes kick off and run for a while, but then they go idle.
I have tried uninstalling and reinstalling node and yarn.
I enabled NODE_DEBUG=cluster,net,http,fs,tls,module,timers node and reran it. The last few lines before it stalls are:
NET 15272: _read
NET 15272: onread 21
NET 15272: got data
NET 15272: _read
NET 15272: onread 33
NET 15272: got data
NET 15272: _read
NET 15272: onread 73
NET 15272: got data
NET 15272: _read
process 15272 is node "C:\Users\mbaxley\AppData\Local\Yarn\config\global\node_modules\.bin\\..\yo\lib\cli.js" jhipster:upgrade
View Remaining Node Tasks
The only file updated during the process is the package.json file. Here is the diff of the modified file:
diff --git a/package.json b/package.json
index 7a2a6b8..eb7de34 100644
--- a/package.json
+++ b/package.json
## -16,11 +16,11 ##
"#angular/platform-browser-dynamic": "2.4.9",
"#angular/router": "3.4.9",
"#ng-bootstrap/ng-bootstrap": "1.0.0-alpha.21",
+ "angular2-cookie": "1.2.6",
"angular2-infinite-scroll": "0.3.4",
"bootstrap": "4.0.0-alpha.6",
- "font-awesome": "4.7.0",
- "angular2-cookie": "1.2.6",
"core-js": "2.4.1",
+ "font-awesome": "4.7.0",
"jquery": "3.1.1",
"ng-jhipster": "0.1.9",
"ng2-webstorage": "1.5.1",
## -47,7 +47,7 ##
"exports-loader": "0.6.4",
"extract-text-webpack-plugin": "2.1.0",
"file-loader": "0.10.1",
- "generator-jhipster": "4.1.1",
+ "generator-jhipster": "4.2.0",
"html-loader": "0.4.5",
"html-webpack-plugin": "2.28.0",
"image-webpack-loader": "3.2.0",
## -65,9 +65,12 ##
"lazypipe": "1.0.1",
"lodash": "4.17.4",
"map-stream": "0.0.6",
+ "node-sass": "4.5.0",
"phantomjs-prebuilt": "2.1.14",
+ "postcss-loader": "1.3.0",
"proxy-middleware": "0.15.0",
"run-sequence": "1.2.2",
+ "sass-loader": "5.0.1",
"sourcemap-istanbul-instrumenter-loader": "0.2.0",
"string-replace-webpack-plugin": "0.1.3",
"style-loader": "0.14.0",
## -81,9 +84,6 ##
"webpack-visualizer-plugin": "0.1.11",
"write-file-webpack-plugin": "3.4.2",
"xml2js": "0.4.17",
- "sass-loader": "5.0.1",
- "node-sass": "4.5.0",
- "postcss-loader": "1.3.0",
"yargs": "6.6.0"
},
"engines": {
Related
this error happens to me when I want to do the npm install and it is canceled in the middle of the process, It should be noted that this did not happen before.
I already applied many of the suggestions I saw, for example: disable the anti virus, run as administrator, among others.
version node :10.13.0 and 10.16.0 (nvm)
version angular :8.0.0
error console PowerShell
my dependencies project
"dependencies": {
"#agm/core": "^1.0.0-beta.5",
"#angular-material-components/datetime-picker": "^2.0.3",
"#angular-material-components/moment-adapter": "^2.0.1",
"#angular/animations": "^8.0.0",
"#angular/cdk": "^8.0.0",
"#angular/common": "^8.0.0",
"#angular/compiler": "^8.0.0",
"#angular/core": "^8.0.0",
"#angular/fire": "^5.2.3",
"#angular/flex-layout": "^7.0.0-beta.23",
"#angular/forms": "^8.0.0",
"#angular/http": "^7.2.1",
"#angular/material": "^8.0.0",
"#angular/material-moment-adapter": "^8.0.2",
"#angular/platform-browser": "^8.0.0",
"#angular/platform-browser-dynamic": "^8.0.0",
"#angular/platform-server": "^8.0.0",
"#angular/router": "^8.0.0",
"#auth0/angular-jwt": "^2.1.0",
"#ng-bootstrap/ng-bootstrap": "^4.0.1",
"#ngx-translate/core": "^11.0.1",
"#ngx-translate/http-loader": "^4.0.0",
"#swimlane/ngx-datatable": "^15.0.0",
"#tinymce/tinymce-angular": "^3.5.0",
"#types/lodash": "^4.14.106",
"#types/pdfjs-dist": "~2.0.1",
"amazing-time-picker": "^1.8.0",
"angular-calendar": "^0.27.19",
"angularfire2": "^5.1.1",
"animate.css": "^3.7.0",
"card": "^2.4.0",
"chart.js": "^2.8.0",
"classlist.js": "^1.1.20150312",
"core-js": "^2.6.2",
"css-element-queries": "^1.1.1",
"date-fns": "^1.30.1",
"easy-pie-chart": "^2.1.7",
"file-saver": "^2.0.2",
"firebase": "^5.8.0",
"font-awesome": "4.7.0",
"hammerjs": "^2.0.8",
"intl": "^1.2.5",
"jquery": "^3.3.1",
"moment": "^2.23.0",
"ng-block-ui": "^2.1.0",
"ng-circle-progress": "^1.5.1",
"ng-currency-format": "^0.1.6",
"ng2-charts": "^1.6.0",
"ng2-currency-mask": "^5.3.1",
"ng2-pdf-viewer": "~5.3.4",
"ng2-validation": "^4.2.0",
"ng2modules-easypiechart": "0.0.4",
"ng5-breadcrumb": "0.0.6",
"ngx-device-detector": "1.4.2",
"ngx-mat-select-search": "^1.7.6",
"ngx-perfect-scrollbar": "^7.2.0",
"ngx-slick-carousel": "^0.4.4",
"ngx-spinner": "^7.1.0",
"ngx-toastr": "^9.1.1",
"ngx-tour-core": "4.1.1",
"ngx-tour-md-menu": "4.1.1",
"ngx-tour-ng-bootstrap": "^4.0.1",
"ngx-webcam": "^0.2.5",
"node-sass": "^4.14.1",
"normalize.css": "^8.0.1",
"pdfjs-dist": "2.5.207",
"perfect-scrollbar": "^1.4.0",
"promise-polyfill": "^8.1.0",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"screenfull": "^4.0.0",
"slick-carousel": "^1.8.1",
"sortablejs": "^1.8.1",
"sweetalert2": "^8.19.0",
"ts-helpers": "^1.1.2",
"videogular2": "^6.4.0",
"web-animations-js": "^2.3.1",
"zone.js": "~0.10.2"
},
"devDependencies": {
"#angular-devkit/build-angular": "^0.800.0",
"#angular/cli": "^8.0.0",
"#angular/compiler-cli": "^8.0.0",
"#angular/language-service": "^8.0.0",
"#types/jasmine": "^3.3.7",
"#types/jquery": "^3.3.29",
"#types/node": "^10.12.18",
"#types/systemjs": "^0.20.6",
"#types/webpack-env": "^1.13.7",
"codelyzer": "^4.5.0",
"gulp-sass": "^5.0.0",
"jasmine-core": "^3.3.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^4.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "^2.0.0",
"karma-coverage-istanbul-reporter": "^2.0.4",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"karma-phantomjs-launcher": "^1.0.4",
"node-sass-magic-importer": "^5.3.2",
"protractor": "^5.4.2",
"rxjs-tslint": "^0.1.6",
"ts-node": "^7.0.1",
"tslint": "^5.12.1",
"typescript": "3.4.5",
"webpack-bundle-analyzer": "^4.5.0"
}
Application Usage
The error might be coming up as it is already in use by another program (without you realising about it, meaning it is running in the background).
To fix this issue, you need to find out which process(es) is/are using the folder. There are multiple methods to do this, and there is a discussion about this here.
You can use the Resource Monitor on Windows 7, 8, 10 and 11, or you can also use PowerShell. There is also an application made by Microsoft in the Sysinternals suite called Process Explorer.
Once you've found the process which is using the folder, you can kill the task. Warning! Do not kill the program if you are unsure of what it is, as it could be a core system file, and ending it may result in irregular behaviour, crashes, and more.
Once you've done that, and the process has been successfully ended, you can run the following command again.
npm install
Hopefully, then, the command should run successfully when the install script changes the folder!
Permission Lack
To fix a permission lack, you need to run the script as an administrator. To do this, run the script in an Administrator Command Prompt or Administrator PowerShell window.
Then, inside of it, run the following command.
npm install
If that doesn't work, you may have to change the permissions of the folder. You can see the instructions here.
Issue:
There is a open issue with latest npm on windows, please check here
Workaround
In the above case eventhough there is no direct dependency of npm, npm getting installed in node modules. So please check package lock file if there is npm in it and the package referring it. If you can correct the package referring npm or downgrading or removing will work.
Install npm#8.3.1 as dev dependency
I would suggest to go with Workaround 1 rather than Workaround 2 as we don't need npm dependency in package as it already been installed globally.
When deploying my new elastic beanstalk, Node.js 12 running on 64bit Amazon Linux 2/5.2.2, application, I'm getting error after running $ eb deploy myapp-staging-env:
2020-10-17 19:57:56 INFO Environment update is starting.
2020-10-17 19:58:22 INFO Deploying new version to instance(s).
2020-10-17 19:58:49 ERROR Instance deployment failed. For details, see 'eb-engine.log'.
2020-10-17 19:58:49 ERROR [Instance: i-034b2f1000000] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error..
2020-10-17 19:58:49 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2020-10-17 19:58:49 ERROR Unsuccessful command execution on instance id(s) 'i-034b2f1d46f466259'. Aborting the operation.
2020-10-17 19:58:50 ERROR Failed to deploy application.
I don't really know where to start.
Errors from logs:
Web.stdout.log: where do I go to fix this error?
----------------------------------------
/var/log/web.stdout.log
----------------------------------------
Oct 17 17:31:43 ip-172-31-47-6 web: Server running at http://127.0.0.1:8080/
...
Oct 17 19:58:50 ip-172-31-47-6 web: /bin/sh: -c: line 0: syntax error near unexpected token `('
Oct 17 19:58:50 ip-172-31-47-6 web: /bin/sh: -c: line 0: `node app.js%!(EXTRA string=server.js)'
Engine execution has encountered an error: what does this mean?
2020/10/17 19:58:49.360716 [INFO] Executing cleanup logic
2020/10/17 19:58:49.360804 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1602964729,"severity":"ERROR"}]}]}
2020/10/17 19:58:49.360984 [INFO] Platform Engine finished execution on command: app-deploy
Execution error on command [app-deploy]: where do I go to fix this?
2020/10/17 19:58:49.339070 [INFO] Running command /bin/sh -c systemctl start web.service
2020/10/17 19:58:49.360702 [ERROR] An error occurred during execution of command [app-deploy] - [FlipApplication]. Stop running the command. Error: Register application failed because the registration of proc web failed:
startProcess Failure: starting process "web" failed: Command /bin/sh -c systemctl start web.service failed with error exit status 1. Stderr:Job for web.service failed because the control process exited with error code. See "systemctl status web.service" and "journalctl -xe" for details.
My package.json:
{
"name": "api",
"version": "0.0.0",
"private": true,
"engines": {
"node" : "12.18.0"
},
"scripts": {
"initialize": "knex migrate:latest && knex seed:run",
"reset": "node_modules/.bin/knex migrate:rollback && node_modules/.bin/knex migrate:latest && node_modules/.bin/knex seed:run",
"initialize-prod": "node_modules/.bin/knex migrate:latest --env production && node_modules/.bin/knex seed:run --env production",
"reset-prod": "node_modules/.bin/knex migrate:rollback --env production && node_modules/.bin/knex migrate:latest --env production && node_modules/.bin/knex seed:run --env production",
"start": "node -v && node server.js",
"server": "node -v && nodemon server.js",
"server-debug": "nodemon --inspect=0.0.0.0 server.js",
"test": "mocha"
},
"dependencies": {
"#google-cloud/speech": "^3.5.4",
"#google-cloud/translate": "^5.1.4",
"body-parser": "^1.18.3",
"bookshelf": "^0.13.3",
"cookie-parser": "~1.4.3",
"cors": "^2.8.4",
"debug": "~2.6.9",
"dotenv": "^7.0.0",
"ejs": "~2.5.7",
"event-stream": "^3.3.5",
"express": "~4.16.0",
"fs": "0.0.1-security",
"fs-path": "0.0.24",
"knex": "^0.20.8",
"lodash": "^4.17.15",
"mailgun-js": "^0.22.0",
"moment": "^2.22.2",
"morgan": "^1.9.1",
"nock": "^10.0.6",
"node-gyp": "^7.1.2",
"passport": "^0.4.0",
"passport-cookie": "^1.0.6",
"pg": "^7.5.0",
"request": "^2.88.0",
"request-promise": "^4.2.2",
"swagger-jsdoc": "^4.0.0",
"swagger-ui-express": "^4.1.4"
},
"devDependencies": {
"chai": "^4.2.0",
"mocha": "^6.2.0",
"nodemon": "^1.18.4"
}
}
Also, for a previous node app I launched (last year), I was able to modify gzip compression and specify the node command, but this option is no longer available:
Elastic Beanstalk removed NodeCommand from software config in favor of a Procfile.
From updated AWS docs on EB Node Deployment:
You can add a Procfile to your source bundle to specify the command
that starts your application, as the following example shows. This
feature replaces the legacy NodeCommand option in the
aws:elasticbeanstalk:container:nodejs namespace.
The Procfile is added to the application root and contains your app run script, e.g.:
web: node server.js
I redeployed and it solved the deploy error (unsure about the Web.stdout.log and app-deploy errors above).
I try to setup a nodejs project called "docdoku-web-front" and i have dependencies problems on bower.
When i try to install my project with the command: npm run dev, i have this errors:
Please note that,
datatables#1.9.4 depends on jquery#~1.8.0 which resolved to jquery#1.8.3
docdokuplm depends on jquery#1.9.1 which resolved to jquery#1.9.1
bootstrap-switch#1.7.0 depends on jquery#~1.9.0 which resolved to jquery#1.9.1
jqueryui#1.9.2 depends on jquery#>= 1.8 which resolved to jquery#1.9.1
selectize#0.12.6 depends on jquery#>=1.7.0 which resolved to jquery#1.9.1
bootstrap-datepicker#1.4.1 depends on jquery#>=1.7.1 which resolved to jquery#1.9.1
bootstrap#3.4.1 depends on jquery#1.9.1 - 3 which resolved to jquery#1.9.1
bootstrap#2.3.2 depends on jquery#>=1.8.0 <2.1.0 which resolved to jquery#1.9.1
jQuery-QueryBuilder#2.0.1 depends on jquery#>= 1.9.0 which resolved to jquery#1.9.1
jquery-extendext#0.1.2 depends on jquery#>=1.9.1 which resolved to jquery#1.9.1
Resort to using jquery#1.9.1 which resolved to jquery#1.9.1
Code incompatibilities may occur.
Please note that,
docdokuplm depends on bootstrap#~2.3.2 which resolved to bootstrap#2.3.2
bootstrap-datepicker#1.4.1 depends on bootstrap#>=2.0.4 <4.0 which resolved to bootstrap#3.4.1
jQuery-QueryBuilder#2.0.1 depends on bootstrap#^3.1.0 which resolved to bootstrap#3.4.1
Resort to using bootstrap#~2.3.2 which resolved to bootstrap#2.3.2
Code incompatibilities may occur.
After investigating, i believe i must change versions on bower.json but i don't know how.
Here is my bower.json
{
"name": "docdokuplm",
"version": "1.1.0",
"dependencies": {
"async": "~0.9.0",
"backbone": "~1.0.0",
"bootbox": "~3.3.0",
"bootstrap": "~2.3.2",
"bootstrap-combobox": "~1.1.6",
"bootstrap-datepicker": "~1.4.1",
"bootstrap-switch": "#1.7.0",
"buzz": "~1.1.4",
"dat.gui": "*",
"datatables": "1.9.4",
"date.format": "~1.2.3",
"fontawesome": "~4.7.0",
"jquery": "#1.9.1",
"jquery-maskedinput": "~1.3.1",
"jQuery-QueryBuilder": "~2.0.1",
"jqueryui": "1.9.2",
"lodash": "~2.4.1",
"modernizr": "~2.7.1",
"moment": "~2.17.1",
"moment-timezone": "~0.5.11",
"mustache": "~0.8.2",
"requirejs": "~2.1.10",
"requirejs-i18n": "~2.0.4",
"requirejs-text": "~2.0.10",
"selectize": "~0.12.0",
"threejs": "https://raw.githubusercontent.com/mrdoob/three.js/r90/build/three.min.js",
"tweenjs": "~16.6.0",
"underscore": "~1.4.2",
"unorm": "1.3.3",
"nvd3": "^1.8.4",
"jwt-decode": "^2.2.0",
"oidc-client": "^1.4.1"
},
"devDependencies": {},
"resolutions": {
"jquery": "1.9.1",
"bootstrap": "~2.3.2"
}
}
Do you have ideas how can i fix it ?
After investigating, i find the solution. My user session have not enough permissions, when i try to install bower manually, i have not permissions on /usr/bin/bower. And i have the same problem with the grunt server. I think i must remove my session and restart setup.
Environment
react-native-cli: 2.0.1, node : v8.2.1, npm: 5.3.0,
Target Platform:
Android 5.0 x86-64 image
Development Operating System:
Windows 7 professional edition, x86_64
package.json
"dependencies": {
"axios": "^0.16.2",
"buffer": "^5.0.6",
"lodash": "^4.17.4",
"mobx": "^3.2.1",
"mobx-react": "^4.2.2",
"react": "16.0.0-alpha.12",
"react-native": "0.45.1",
"react-native-background-timer": "^1.1.0",
"react-native-fetch-blob": "latest",
"react-native-timer": "^1.3.1"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "2.0.0",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12",
"tslint": "^5.4.3",
"typescript": "^2.4.1",
"typings": "^2.1.1"
},
Steps to Reproduce
npm install, npm run build, react-native run-android
Expected Behavior
This is supposed to launch the application successfully on Physical device connected via USB or on the emulator running.
Actual Behavior
App fails to launch with these bunch of warning messages:
Warning: Failed prop type: Invalid prop 'alignItems' of value 'function checkType() {... [native code]
Warning: Failed prop type: Invalid prop 'bacckgroundColor' supplied to 'SrollView': function colorPropType() { [native code] }
Warning: Failed prop type: Invalid prop 'bacckgroundColor' supplied to 'View': function colorPropType() { [native code] }
Warning: Failed prop type: Invalid prop 'display' of type 'function' supplied to 'RCTView', expected 'string'. Bad object:{} in RCTView (at View.js:128)
....
Build and deployment works fine with release builds which means running the following command it works fine:
react-native run-android --variant=release
2) The same code base doesn’t work with apk debug builds
react-native run-android --variant=debug
3) The weird thing is that this behavior is not consistent. Intermittently sometimes it works fine. For example, I have tried using different combination of react/react-native versions in the package.json. Its observed that it worked once with react v0.47.1 and react-native v16.0.0-bet5. The same configuration on same set up failed later.
4) For once it also worked with a combination of both react/react-native upgraded to latest versions (v0.48_rc0 and v16.0.0-bet5 respectively). But that too is not consistently working.
I am trying to install my npm dependencies on Ubuntu 14.04.3 (Linux ubuntu 3.13.0-45-generic #74-Ubuntu) from package.json file. I don't know if it is important, but Ubuntu is a virtual machine. I install dependencies in /tmp directory so it isn't any shared folder or samba resource.
Node.js version: 0.12.7.
Npm version: 3.3.9.
Package.json:
{
...
"devDependencies": {
"babel-loader": "5.3.*",
"bootstrap": "3.3.*",
"css-loader": "0.19.*",
"del": "2.0.*",
"extract-text-webpack-plugin": "0.8.*",
"file-loader": "0.8.*",
"gulp": "3.9.*",
"gulp-eslint": "1.0.*",
"gulp-util": "3.0.*",
"html-loader": "0.3.*",
"karma": "0.13.*",
"karma-chai-plugins": "0.6.*",
"karma-mocha": "0.2.*",
"karma-phantomjs-launcher": "0.2.*",
"karma-webpack": "1.7.*",
"mocha": "2.3.*",
"phantomjs": "1.9.*",
"style-loader": "0.12.*",
"url-loader": "0.5.*",
"webpack": "1.12.*",
"yargs": "3.27.*"
},
"engines": {
"node": ">= 0.12.0"
}
"dependencies": {
"express": "4.13.*"
}
}
I use --no-bin-links install flag (I need to copy node_modules directory to another NTFS based location).
When i am installing dependencies i have following error:
RangeError: Maximum call stack size exceeded
at emit (events.js:107:17)
at null.<anonymous>(/usr/lib/node_modules/npm/node_modules/npmlog/node_modules/are-we-there-yet/index.js:14:10)
at emit (events.js:107:17)
at null.<anonymous> (/usr/lib/node_modules/npm/node_modules/npmlog/node_modules/are-we-there-yet/index.js:14:10)
at emit (events.js:107:17)
at null.<anonymous> (/usr/lib/node_modules/npm/node_modules/npmlog/node_modules/are-we-there-yet/index.js:14:10)
at emit (events.js:107:17)
at null.<anonymous> (/usr/lib/node_modules/npm/node_modules/npmlog/node_modules/are-we-there-yet/index.js:14:10)
at emit (events.js:107:17)
at TrackerGroup.finish (/usr/lib/node_modules/npm/node_modules/npmlog/node_modules/are-we-there-yet/index.js:60:8)
Does anybody have any idea how to fix it?
You most probabbly experienced NPM Issues #9224 or #9239.
To work around the issues, you can install the packages into /tmp without the --no-bin-links flag and make sure that you replace the symlinks with files/dirs afterwards. You can use rsync -L to copy the files to NTFS with symlinks transformed into referent files and dirs.