yarn && yarn start not working,
[1] [00:06:45] No gulpfile found info If you think this is a bug, please open a bug report with the information provided in "E:\MyServer\draggable\examples\yarn-error.log". error An unexpected error occurred: "Command failed. [1] Exit code: 1 [1] Command: C:\WINDOWS\system32\cmd.exe [1] Arguments: /d /s /c gulp build $npm_package_config_tools [1] Directory: E:\MyServer\draggable\examples [1] Output: [1] ". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. info If you think this is a bug, please open a bug report with the information provided in "E:\MyServer\draggable\examples\yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. error An unexpected error occurred: "Command failed. [1] Exit code: 1 [1] Command: C:\WINDOWS\system32\cmd.exe [1] Arguments: /d /s /c yarn run build [1] Directory: E:\MyServer\draggable\examples [1] Output: [1] ". [1] cd examples && yarn && yarn start exited with code 1
please someone help me how to run the example files
Interesting! Can you try cd examples, run yarn install and try it again? I have feeling the settings in examples/package.json may not be windows compliant, I will have to check that out later.
Let me know if that helped
i've tried that but it's not working as well, it says no gulpfile found. do you have any idea how to solve it?
Very strange... what version of node are you running?
I have not tested this on a windows machine, so its possible there is something effed... for instance, I think I'd need to replace any rm -rf with rimraf:
https://github.com/Shopify/draggable/blob/master/examples/package.json#L21
@buddyy93 can you perhaps try:
- delete both
yarn.lockfiles - delete both
node_modulefolders - remove
yarn run clean &&from https://github.com/Shopify/draggable/blob/master/examples/package.json#L26 - from root
draggablefolder, runyarn cache clean - run
yarnin rootdraggablefolder cd examples && yarn
Same issue?
If you are using nvm (nvm-windows, shouldn't matter), you should switch to a higher node version than 8.9.0 and then install yarn again via npm install yarn -g Then all you gotta do is to go to root folder and run the command. Ping me if it doesn't work, that's how I solved the problem. @buddyy93
@cihankoseoglu thanks for helping out :)
Going to go ahead and close this issue. @buddyy93 if your problem persists, feel free to re-open.
Hello, I am having the same issue. I tried the solution above, and reinstall node, but still, i am having the same error. "no gulpfile found".. please help.
@daditangs sorry for the trouble 😞
Could you please provide more information?
- Operating System version (Windows / Mac / Linux)
- Confirm you have checked out the latest
masterof Draggable - Confirm that you run the following commands from the
rootfolder of thedraggableproject:- Version of
node(open CLI and typenode -v) - Version of
yarn(open CLI and typeyarn -v)
- Version of
- If trouble persists, please try the steps found here: https://github.com/Shopify/draggable/issues/225#issuecomment-394504310
Please report back and let us know what happens! Will try to resolve this. So sorry for the issues!
Hi, I have literally the same problem:
- Windows 10 Home, Version 10.0.16299 Build 16299
- I have
v8.11.31.7.0
@lexected draggable is on node v10.4.0. Could you try upgrading to that version (nvm or some version manager recommended) and let us know if the issue persists?
If could be that I have just overlooked something in my build tooling that isn't compatible in Windows. If upgrading node doesn't work, I will try to find some time to get Windows setup and do some testing.
@beefchimi Hi mate, thanks for a response. I have just updated to v10.7.0 (the latest one) and am getting this:
yarn run v1.7.0
$ concurrently "yarn watch" "cd examples && yarn && yarn start"
$ node scripts/watch.js
[1/4] Resolving packages...
[2/4] Fetching packages...
[1] (node:4948) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[0] Hash: 1991a929b8815972686a
[0] Version: webpack 4.12.0
[0] Time: 2692ms
[0] Built at: 07/19/2018 3:18:19 PM
[0] Asset Size Chunks Chunk Names
[0] index.js 221 KiB main [emitted] main
[0] Entrypoint main = index.js
[0] [./src/Draggable/Plugins/index.js] 1.36 KiB {main} [built]
[0] [./src/Draggable/Sensors/DragSensor/index.js] 318 bytes {main} [built]
[0] [./src/Draggable/Sensors/ForceTouchSensor/index.js] 348 bytes {main} [built]
[0] [./src/Draggable/Sensors/MouseSensor/index.js] 323 bytes {main} [built]
[0] [./src/Draggable/Sensors/Sensor/index.js] 298 bytes {main} [built]
[0] [./src/Draggable/Sensors/SensorEvent/index.js] 367 bytes {main} [built]
[0] [./src/Draggable/Sensors/index.js] 1.43 KiB {main} [built]
[0] [./src/Draggable/index.js] 1.4 KiB {main} [built]
[0] [./src/Droppable/index.js] 613 bytes {main} [built]
[0] [./src/Plugins/index.js] 1.26 KiB {main} [built]
[0] [./src/Sortable/index.js] 604 bytes {main} [built]
[0] [./src/Swappable/index.js] 613 bytes {main} [built]
[0] [./src/index.js] 1.91 KiB {main} [built]
[0] [./src/shared/AbstractEvent/index.js] 333 bytes {main} [built]
[0] [./src/shared/AbstractPlugin/index.js] 338 bytes {main} [built]
[0] + 52 hidden modules
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "babel-preset-shopify > react-hot-loader > [email protected]" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0-beta || ^16.0.0".
warning "babel-preset-shopify > react-hot-loader > [email protected]" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0-beta || ^16.0.0".
warning "eslint-plugin-shopify > [email protected]" has unmet peer dependency "typescript@*".
warning " > [email protected]" has incorrect peer dependency "gulp@>=4".
warning "stylelint > [email protected]" has incorrect peer dependency "postcss-syntax@^0.10.0".
warning "stylelint > [email protected]" has incorrect peer dependency "postcss-syntax@^0.10.0".
[4/4] Building fresh packages...
$ yarn run build
$ yarn run clean && gulp build $npm_package_config_tools
$ rimraf dist bundle-report.html
[1] [15:18:52] No gulpfile found
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[1] error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[1] error Command failed with exit code 1.
[1] cd examples && yarn && yarn start exited with code 1
A full screenshot: http://prntscr.com/k8gmea
hmm this cooould be the culprit:
info [email protected]: The platform "win32" is incompatible with this module.
@lexected could you do one more thing and check what version of npm is running? (npm -v)
You should be at least 5.6.0. Instead of using yarn try npm install and lets see what happens (rm -rf node_modules first... or use the windows equivalent).
@beefchimi My npm version is 6.1.0.
npm install led to this output:
PS C:\draggable> npm install
> @shopify/[email protected] prepare C:\Users\lexec\Desktop\kwerkhq\draggable
> yarn build:development
yarn run v1.7.0
$ node scripts/build.js
Hash: 1991a929b8815972686a
Version: webpack 4.16.1
Time: 1733ms
Built at: 07/19/2018 3:50:41 PM
Asset Size Chunks Chunk Names
index.js 221 KiB main [emitted] main
Entrypoint main = index.js
[./src/Draggable/Plugins/index.js] 1.36 KiB {main} [built]
[./src/Draggable/Sensors/DragSensor/index.js] 318 bytes {main} [built]
[./src/Draggable/Sensors/ForceTouchSensor/index.js] 348 bytes {main} [built]
[./src/Draggable/Sensors/MouseSensor/index.js] 323 bytes {main} [built]
[./src/Draggable/Sensors/Sensor/index.js] 298 bytes {main} [built]
[./src/Draggable/Sensors/SensorEvent/index.js] 367 bytes {main} [built]
[./src/Draggable/Sensors/index.js] 1.43 KiB {main} [built]
[./src/Draggable/index.js] 1.4 KiB {main} [built]
[./src/Droppable/index.js] 613 bytes {main} [built]
[./src/Plugins/index.js] 1.26 KiB {main} [built]
[./src/Sortable/index.js] 604 bytes {main} [built]
[./src/Swappable/index.js] 613 bytes {main} [built]
[./src/index.js] 1.91 KiB {main} [built]
[./src/shared/AbstractEvent/index.js] 333 bytes {main} [built]
[./src/shared/AbstractPlugin/index.js] 338 bytes {main} [built]
+ 52 hidden modules
Done in 12.00s.
npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.0 || ^16.0.0-beta || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^0.14.0 || ^15.0.0 || ^16.0.0-beta || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
audited 32000 packages in 20.35s
found 0 vulnerabilities
Successive npm run start however led to
PS C:\draggable> npm run start
> @shopify/[email protected] start C:\Users\lexec\Desktop\kwerkhq\draggable
> concurrently "yarn watch" "cd examples && yarn && yarn start"
yarn run v1.7.0
yarn install v1.7.0
$ node scripts/watch.js
[1/4] Resolving packages...
success Already up-to-date.
$ yarn run build
yarn run v1.7.0
$ yarn run clean && gulp build $npm_package_config_tools
$ rimraf dist bundle-report.html
[1] 'gulp' is not recognized as an internal or external command,
[1] operable program or batch file.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[1] error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
[1] cd examples && yarn && yarn start exited with code 1
[0] Hash: 1991a929b8815972686a
[0] Version: webpack 4.16.1
[0] Time: 1829ms
[0] Built at: 07/19/2018 3:52:11 PM
[0] Asset Size Chunks Chunk Names
[0] index.js 221 KiB main [emitted] main
[0] Entrypoint main = index.js
[0] [./src/Draggable/Plugins/index.js] 1.36 KiB {main} [built]
[0] [./src/Draggable/Sensors/DragSensor/index.js] 318 bytes {main} [built]
[0] [./src/Draggable/Sensors/ForceTouchSensor/index.js] 348 bytes {main} [built]
[0] [./src/Draggable/Sensors/MouseSensor/index.js] 323 bytes {main} [built]
[0] [./src/Draggable/Sensors/Sensor/index.js] 298 bytes {main} [built]
[0] [./src/Draggable/Sensors/SensorEvent/index.js] 367 bytes {main} [built]
[0] [./src/Draggable/Sensors/index.js] 1.43 KiB {main} [built]
[0] [./src/Draggable/index.js] 1.4 KiB {main} [built]
[0] [./src/Droppable/index.js] 613 bytes {main} [built]
[0] [./src/Plugins/index.js] 1.26 KiB {main} [built]
[0] [./src/Sortable/index.js] 604 bytes {main} [built]
[0] [./src/Swappable/index.js] 613 bytes {main} [built]
[0] [./src/index.js] 1.91 KiB {main} [built]
[0] [./src/shared/AbstractEvent/index.js] 333 bytes {main} [built]
[0] [./src/shared/AbstractPlugin/index.js] 338 bytes {main} [built]
[0] + 52 hidden modules
And I had to terminate forcefully.
@beefchimi
I already tried #225 (comment) and no success. Here are the information you asked: Operating System version - Windows Confirm you have checked out the latest master of Draggable - yes, i cloned from the repo link https://github.com/Shopify/draggable.git Confirm that you run the following commands from the root folder of the draggable project: Version of node (open CLI and type node -v) - v8.11.3 Version of yarn (open CLI and type yarn -v) - 1.7.0
Still, the same issue. :( please help
@beefchimi bump - is there any update on this? I am happy to be your distance test environment if you lack one.
@lexected thanks 😄 haven't had the chance to setup my Windows instance yet.
I am curious if its just a matter of installing the gulp-cli ^2.0.1 globally (and possibly even gulp)... you shouldn't have to, but maybe things behave differently on Windows. If you are able to give that a shot, I'd really appreciate it ❤️
If that doesn't solve it, I'd need to troubleshoot by process of elimination. Basically scrap all the src and tools and just see if I can do a basic gulp task - then go from there.
Temporary solution:
before:

after:

Interesting - $npm config variables don't work on Windows? Thats a surprise.
I've put up a quick PR: https://github.com/Shopify/draggable/pull/259
If anyone is able to test that against their Windows machine, that would be awesome.
I try "yarn start" but receive other error:
yarn run v1.10.1
$ concurrently "yarn watch" "cd examples && yarn && yarn start"
$ node scripts/watch.js
[1/4] Resolving packages...
[0] Hash: 9fab797700750369daae
[0] Version: webpack 4.12.0
[0] Time: 1930ms
[0] Built at: 2018-11-08 00:03:27
[0] Asset Size Chunks Chunk Names
[0] index.js 218 KiB main [emitted] main
[0] Entrypoint main = index.js
[0] [./src/Draggable/Plugins/index.js] 1.36 KiB {main} [built]
[0] [./src/Draggable/Sensors/DragSensor/index.js] 318 bytes {main} [built]
[0] [./src/Draggable/Sensors/ForceTouchSensor/index.js] 348 bytes {main} [built]
[0] [./src/Draggable/Sensors/MouseSensor/index.js] 323 bytes {main} [built]
[0] [./src/Draggable/Sensors/Sensor/index.js] 298 bytes {main} [built]
[0] [./src/Draggable/Sensors/SensorEvent/index.js] 367 bytes {main} [built]
[0] [./src/Draggable/Sensors/index.js] 1.43 KiB {main} [built]
[0] [./src/Draggable/index.js] 1.4 KiB {main} [built]
[0] [./src/Droppable/index.js] 613 bytes {main} [built]
[0] [./src/Plugins/index.js] 1.26 KiB {main} [built]
[0] [./src/Sortable/index.js] 604 bytes {main} [built]
[0] [./src/Swappable/index.js] 613 bytes {main} [built]
[0] [./src/index.js] 1.91 KiB {main} [built]
[0] [./src/shared/AbstractEvent/index.js] 333 bytes {main} [built]
[0] [./src/shared/AbstractPlugin/index.js] 338 bytes {main} [built]
[0] + 52 hidden modules
[2/4] Fetching packages...
error Command failed.
[1] Exit code: 128
[1] Command: git
[1] Arguments: ls-remote --tags --heads ssh://[email protected]/beefchimi/threads.git
[1] Directory: /home/gr8/sandbox/draggable/draggable/examples
[1] Output:
[1] Host key verification failed.
[1] fatal: Could not read from remote repository.
[1]
[1] Please make sure you have the correct access rights
[1] and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[1] cd examples && yarn && yarn start exited with code 1