camunda / camunda-modeler

An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io.
https://camunda.com/products/modeler
MIT License
1.49k stars 476 forks source link

ESLint couldn't find the plugin "eslint-plugin-bpmn-io". #1470

Closed AlexeyZabolockyi closed 5 years ago

AlexeyZabolockyi commented 5 years ago

Describe the Bug

ESLint couldn't find the plugin "eslint-plugin-bpmn-io".

Steps to Reproduce

  1. Download ZIp Archive 2 Unzip Camunda modeler
  2. execute 'npm install' command in console
  3. execute 'npm run all' command in console also trying to fix problem by scripts 'npm install eslint-plugin-bpmn-io@latest --save-dev' and 'npm install --resolve-plugins-relative-to' but it does not help

Expected Behavior scrips finished without any exceptions

Environment

nikku commented 5 years ago

Which archive did you download? In which folder do you npm install?

AlexeyZabolockyi commented 5 years ago

trying to work with develop branch and branch with tag 'v3.2.3, executes all command from modeler folder.

AlexeyZabolockyi commented 5 years ago

i forgot to add: npm@6.10.3 node@v12.7.0 may be it will help you

nikku commented 5 years ago

Can you verify the following works (or does not work) for you:

git clone git@github.com:camunda/camunda-modeler.git
cd camunda-modeler
npm install
npm run all
AlexeyZabolockyi commented 5 years ago

i don't have git atm, so i'm not cloning repository from gitbut download as zip archive it was needed to install few plugins such as lerna, eslint, lint and webpack to make npm install work without any exceprions. otherwise it failed. now 'npm install' works fine and 'npm run all' not

nikku commented 5 years ago

Cannot reproduce this on Linux.

AlexeyZabolockyi commented 5 years ago

but i work on windows, not Linux :)

AlexeyZabolockyi commented 5 years ago

Do you need .log files? Will it help or not?

philippfromme commented 5 years ago

Cannot reproduce on Windows 10 either.

AlexeyZabolockyi commented 5 years ago

it's make me sad. what information i can give you to clarify my problem?

nikku commented 5 years ago

Not sure. Do you have eslint installed globally?

AlexeyZabolockyi commented 5 years ago

yes

AlexeyZabolockyi commented 5 years ago

Tried to reinstall eslint. There was two warnings: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) may it will help

nikku commented 5 years ago

Does it work if you uninstall the global eslint version?

AlexeyZabolockyi commented 5 years ago

Nope. Unisntall the global eslint. 'npm run all' failed at " 'eslint' is not recognized as an internal or external command, operable program or batch file."

'npm install' was executed before 'npm run all'

nikku commented 5 years ago

This seems to be an issue with your setup then, I presume it is the fact that you build it via the standard cmd?

I'd recommend you to use the git bash shipped with git for windows or the Linux sub-system for Windows for building the app. That should work fine.

Building with the shells integrated in VSCode or other IDEs should work fine, too.

AlexeyZabolockyi commented 5 years ago

Have same problem with git bash for windows.

nikku commented 5 years ago

Unfortunately I cannot help you beyond this point.

We got two stock Windows 10 machines here for which the setup works. Our CI is green on Windows on some Server 16 or so, too.

AlexeyZabolockyi commented 5 years ago

Ok. thank for the support. One last question from me. Does your windows have 32 bit or 64 bit?

nikku commented 5 years ago

64

nikku commented 5 years ago

Closing this issue as there is nothing else we can do for you. Hope you sort this thing out!