I'm unable to get a jhipster generated project running, right after generating it.
~/folder$ yo jhipster
Complete the "wizard" then
~/folder$ gradle bootRun
Boom! It fails on the "npmInstall" step. "bower install" and "npm install" work fine by themselves.
The exceptions (when running "gradle --stacktrace bootRun")
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'npm''
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:196)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:325)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:83)
... 1 more
Caused by: net.rubygrapefruit.platform.NativeException: Could not start 'npm'
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27)
at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(WrapperProcessLauncher.java:36)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:65)
... 1 more
Caused by: java.io.IOException: Cannot run program "npm" (in directory "/<...>/workspace/netreon"): error=2, No such file or directory
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
... 3 more
Caused by: java.io.IOException: error=2, No such file or directory
... 4 more
Npm is available on the PATH though, installed with brew
$ which node
/usr/local/bin/node
$ which npm
/usr/local/bin/npm
$ node --version
v0.10.29
$ npm --version
2.5.0
$ java -version
java version "1.7.0_55"
$ javac -version
javac 1.7.0_55
.yo-rc.json configs:
{
"generator-jhipster": {
"baseName": "myproj",
"packageName": "com.myproj",
"packageFolder": "com/myproj",
"authenticationType": "oauth2",
"hibernateCache": "ehcache",
"clusteredHttpSession": "no",
"websocket": "spring-websocket",
"databaseType": "sql",
"devDatabaseType": "mysql",
"prodDatabaseType": "mysql",
"useCompass": true,
"buildTool": "gradle",
"frontendBuilder": "gulp",
"javaVersion": "7"
}
}
I think I have the latest version of jhipster generator, not sure how to check that though
Are you running as root using sudo -i? npm is rarely installed for root and that was my issue.
Just gradlew under your normal user
Related
I have no idea what this error means anyone knows what a possible fix could be?
Failed to compile.
./src/main.js
Module build failed (from ./node_modules/eslint-loader/index.js):
Error: No ESLint configuration found.
at Config.getLocalConfigHierarchy (C:\Users\George\desktop\vuejsprojects\website\node_modules\eslint\lib\config.js:268:39)
at Config.getConfigHierarchy (C:\Users\George\desktop\vuejsprojects\website\node_modules\eslint\lib\config.js:192:43)
at Config.getConfigVector (C:\Users\George\desktop\vuejsprojects\website\node_modules\eslint\lib\config.js:299:21)
at Config.getConfig (C:\Users\George\desktop\vuejsprojects\website\node_modules\eslint\lib\config.js:342:29)
at processText (C:\Users\George\desktop\vuejsprojects\website\node_modules\eslint\lib\cli-engine.js:181:33)
at CLIEngine.executeOnText (C:\Users\George\desktop\vuejsprojects\website\node_modules\eslint\lib\cli-engine.js:690:40)
at lint (C:\Users\George\desktop\vuejsprojects\website\node_modules\eslint-loader\index.js:263:17)
at transform (C:\Users\George\desktop\vuejsprojects\website\node_modules\eslint-loader\index.js:237:18)
at C:\Users\George\desktop\vuejsprojects\website\node_modules\loader-fs-cache\index.js:127:18
at ReadFileContext.callback (C:\Users\George\desktop\vuejsprojects\website\node_modules\loader-fs-cache\index.js:31:14)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13)
Local Installation and Usage
If you want to include ESLint as part of your project's build system, we recommend installing it locally. You can do so using npm:
npm install eslint --save-dev
You should then setup a configuration file:
./node_modules/.bin/eslint --init
After that, you can run ESLint in your project's root directory like this:
./node_modules/.bin/eslint yourfile.js
Configuration
Note: If you are coming from a version before 1.0.0 please see the migration guide.
After running eslint --init, you'll have a .eslintrc file in your directory. In it, you'll see some rules configured like this:
{
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "double"]
}
}
To know more: Getting Started with ESLint
I had the same error weeks ago, i ran this on the terminal of my project and solved it:
npm install eslint -g -D
eslint --init
I took it from here:
https://github.com/creativetimofficial/vue-argon-design-system/issues/34
I followed the steps at https://github.com/codeforequity-at/botium-connector-directline3
> npm install -g botium-cli
> npm install -g botium-connector-directline3
> botium-cli init
> botium-cli run
But, running
botium-cli run --config path/to/botium.json --convos give_me_a_picture.convo.txt gives me this
Error: Loading Botium Plugin failed.
Loading Botium plugin from directline3 failed - Cannot find module 'directline3'
Loading Botium plugin botium-connector-directline3 failed, try "npm install botium-connector-directline3" - Cannot find module 'botium-core'
at tryLoadPlugin (/Users/<user>/.nvm/versions/node/v10.13.0/lib/node_modules/botium-cli/node_modules/botium-core/src/containers/plugins/index.js:133:9)
at PluginConnectorContainer.Validate (/Users/<user>/.nvm/versions/node/v10.13.0/lib/node_modules/botium-cli/node_modules/botium-core/src/containers/PluginConnectorContainer.js:14:27)
Is this an issue with the node version 10.13.0 that I have?
My botium.json
"botium": {
"Capabilities": {
"PROJECTNAME": "My Botium Project",
"CONTAINERMODE": "directline3",
"DIRECTLINE3_SECRET": "<secret>",
"DIRECTLINE3_WEBSOCKET": true,
"DIRECTLINE3_POLLINGINTERVAL": 1000
},
"Sources": {},
"Envs": {}
}
}
This issue got resolved after I ran npm install -g botium-core
I'm using appium command by npm as global and I am working in a wdio project with appium as a depedency.
package.json
...
"appium": "^1.17.1",
"wdio-appium-service": "^0.2.3",
"wdio-cucumber-framework": "^0.3.1",
"webdriverio": "^4.8.0"
...
Project's environment is using Node v8.16.0
I used to use Appium 1.16.1 and everything was well.
capabilities:
{
appiumVersion: '1.17.1',
deviceName: 'iPhone 11',
platformName: 'iOS',
deviceOrientation: 'portrait',
platformVersion: '13.1',
app: ***.app.zip,
automationName: 'XCUITest',
newCommandTimeout: 480,
fullReset: false
}
I recently update Appium to 1.17.1 (both global command and local dependency) and running the tests I started to get this error:
ERROR: An unknown server-side error occurred while processing the command. Original error: Could not load a driver for automationName 'XCUITest' and platformName 'iOS'. Please verify your Appium installation
iphone11.ios.13_2.app_zip
You can use appium-doctor to verify if your environment is properly setup and meets Appium requirements for each platform.
Install it:
npm install appium-doctor -g
Use it:
appium-doctor --ios
It will show what exactly is missing.
I'm using Windows 10, IntelliJ 2020.1 and Node 12
When I run "npm install" from the terminal inside IntelliJ, everything installs like normal. However, when I make an edit to my package.json file and click "Run 'npm install" in the popup in the lower right corner, I receive the follow error:
Specify configs in the ini-formatted file:
C:\Users\me\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm#6.14.4 C:\Users\me\AppData\Roaming\npm\node_modules\npm
Process finished with exit code 1
Am I overlooking a simple IntelliJ config setting? Appreciate any help.
====
and the last entry in the log before the error mentioned above:
at com.intellij.javascript.nodejs.packages.NodePackageUtil.doLoadPackageInfo(NodePackageUtil.java:112)
at com.intellij.javascript.nodejs.packages.NodePackageUtil.loadPackageInfo(NodePackageUtil.java:71)
at com.intellij.javascript.nodejs.settings.NodePackageInfoManager$1.fetch(NodePackageInfoManager.java:23)
at com.intellij.javascript.nodejs.settings.NodePackageInfoManager$1.fetch(NodePackageInfoManager.java:19)
at com.intellij.lang.javascript.bower.cache.PrevRequestSkippingCache.lambda$fetchSync$2(PrevRequestSkippingCache.java:82)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.lang.javascript.bower.cache.PrevRequestSkippingCache.fetchSync(PrevRequestSkippingCache.java:92)
at com.intellij.lang.javascript.bower.cache.PrevRequestSkippingCache.lambda$fetchAsync$1(PrevRequestSkippingCache.java:72)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:222)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:29)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:201)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:210)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:190)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-04-27 18:45:43,643 [101269107] WARN - ckaging.InstalledPackagesPanel - Cannot fetch the latest version of the installed package npm
com.intellij.javascript.nodejs.packages.NodePackageInfoException: FAILED COMMAND: "C:\Program Files\nodejs\npm.cmd" C:\Users\me\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js info --json npm
EXIT CODE: 1```
You have specified npm.cmd as a Node.js interpreter, but it's not an interpreter, it's a package manager run with Node.js. Please specify a valid path to node.exe - must be C:\Program Files\nodejs\node.exe
I'm using the webapp generator and I'm getting errors on a default build.
I create a new directory and run
yo webapp
Then
grunt
And finally
grunt server:dist
The Chrome console gives me the following errors:
Allo 'Allo! a53234b6.main.js:3
Running jQuery 1.10.2 a53234b6.main.js:3
Failed to load resource http://127.0.0.1:35729/livereload.js?snipver=1
Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:9000/modules/a53234b6.main.js
Uncaught Error: Script error for: a53234b6.main
http://requirejs.org/docs/errors.html#scripterror skitch.js:354
Am I using the wrong commands? Do I need to update node, npm, yeoman, etc? This is an awesome tool, but I might need to switch back to manual mode b/c I can't troubleshoot it very well
In your package.json, under devDependencies, add the following:
"devDependencies": {
...
"grunt": "~0.4.2",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
...
"grunt-contrib-watch": "~0.5.2",
...
"grunt-contrib-livereload": "0.1.2", // <- add this line
Then:
$> npm install
$> bower install
$> grunt server