Coder Social home page Coder Social logo

cypress-tutorial-build-todo-starter's Introduction

Build and test an application using Cypress

This repository is the starting point for an official Cypress tutorial. We encourage you to clone this repo and follow along.

cypress-tutorial-build-todo-starter's People

Contributors

avanslaars avatar jennifer-shehane avatar jessicasachs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cypress-tutorial-build-todo-starter's Issues

npm run cypress failed

Steps to execute:

  1. Clone the repository https://github.com/cypress-io/cypress-tutorial-build-todo-starter.git
  2. Install Cypress 3.3.2 by the command npm install
  3. Start the server by npm run dev
  4. Check if the application is running on localhost:3030
  5. Add the string "cypress": "cypress open" to package.json
  6. Start cypress with npm run cypress
    An error arises:
    Cypress verification timed out.
    This command failed with the following output:
    C:\Users\admin\AppData\Local\Cypress\Cache\3.3.2\Cypress\Cypress.exe --smoke-test --ping=930

Command failed: C:\Users\admin\AppData\Local\Cypress\Cache\3.3.2\Cypress\Cypress.exe --smoke-test --ping=930

Platform: win32 (10.0.18362)
Cypress Version: 3.3.2
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] cypress: cypress open
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] cypress script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

P.S. The Cypress works ok in another directory which does not contain the cloned project

lodash Prototype Pollution vulnerability still exists

After I executed npm install, 510 vulnerabilities were founded.
So I executed the following commands in order.

npm audit fix
npm audit
npm install --save-dev [email protected]
npm audit fix
npm update json-server
npm audit fix

Is the above procedure correct?

However, [email protected] Prototype Pollution vulnerability still exists.

When I execute npm run dev, the server seems to start.

Do I need to fix the vulnerability?
But [email protected] requires [email protected].
How can I do fix the vulnerability?

Any help will be appriciated.

Post Node Version

Hey I know this is going to be an odd request, but I just tried this tutorial with node 14. It doesn't seem that the concurrently command within the dev script works. The video tutorials say that 'node' is needed, but don't specify a version. Can we post what version is used for these tutorials somewhere?

I'm going to continue to play with different node versions until I can find one that works.

Thanks!

Update Dependencies (Renovate Bot)

This master issue contains a list of Renovate updates and their statuses.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to ignore the schedule.

  • chore(deps): update dependency cypress to version 3.8.3 ๐ŸŒŸ
  • chore(deps): update dependency style-loader to version 0.23.1 ๐ŸŒŸ
  • fix(deps): update dependency react-router-dom to version 4.3.1 ๐ŸŒŸ
  • chore(deps): update dependency babel-loader to version 8.1.0 ๐ŸŒŸ
  • chore(deps): update dependency css-loader to version 1.0.1 ๐ŸŒŸ
  • chore(deps): update dependency css-loader to version 2.1.1 ๐ŸŒŸ
  • chore(deps): update dependency css-loader to version 3.4.2 ๐ŸŒŸ
  • chore(deps): update dependency cypress to version 4.2.0 ๐ŸŒŸ
  • chore(deps): update dependency html-webpack-plugin to version 3.2.0 ๐ŸŒŸ
  • chore(deps): update dependency html-webpack-plugin to version 4.0.2 ๐ŸŒŸ
  • chore(deps): update dependency style-loader to version 1.1.3 ๐ŸŒŸ
  • chore(deps): update dependency webpack to version 4.42.1 ๐ŸŒŸ
  • fix(deps): update dependency concurrently to version 4.1.2 ๐ŸŒŸ
  • fix(deps): update dependency concurrently to version 5.1.0 ๐ŸŒŸ
  • fix(deps): update dependency react-router-dom to version 5.1.2 ๐ŸŒŸ
  • chore(deps): update dependency to version ๐ŸŒŸ

Advanced
  • Check this box to trigger a request for Renovate to run again on this repository

npm install fails. attempt to run fails.

Mac OS X 10.14.6

joel@simon: ~/dev/cypress/tutorials/cypress-tutorial-build-todo-starter (master) $ ls
LICENSE db.json package-lock.json routes.json

webpack.config.js
README.md json-server.json package.json src
joel@simon: ~/dev/cypress/tutorials/cypress-tutorial-build-todo-starter (master) $ npm install

[email protected] install /Users/joel/dev/cypress/tutorials/cypress-tutorial-build-todo-starter/node_modules/fsevents
node install

node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v72-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v72-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI) (falling back to source compile with node-gyp)
SOLINK_MODULE(target) Release/.node
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
CXX(target) Release/obj.target/fse/fsevents.o
In file included from In file included from ../fsevents.cc../fsevents.cc::66:

. . . many pages of spewing later ...

[email protected] postinstall /Users/joel/dev/cypress/tutorials/cypress-tutorial-build-todo-starter/node_modules/cypress
node index.js --exec install

Cypress 3.7.0 is installed in /Users/joel/Library/Caches/Cypress/3.7.0

npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

added 868 packages from 652 contributors and audited 4779 packages in 16.568s
found 512 vulnerabilities (167 low, 15 moderate, 329 high, 1 critical)
run npm audit fix to fix them, or npm audit for details

Then, later, when I try to run it:

json-server requires at least version 4 of Node, please upgrade
[1] npm
[1] ERR! code ELIFECYCLE
[1] npm ERR! errno 1
[1] npm ERR!
[1] [email protected] serve: json-server db.json
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR!
[1] Failed at the [email protected] serve script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[1]
[1] npm
[1] ERR! A complete log of this run can be found in:
[1] npm ERR! /Users/joel/.npm/_logs/2019-12-02T00_22_59_697Z-debug.log

but...
joel@simon: ~/dev/cypress/tutorials/cypress-tutorial-build-todo-starter (master) $ node --version
v12.12.0

npm install failed

OS: Windows 10
npm -v: 6.12.1
node -v: v12.13.1

Unfortunately I wasn't able to went through first episode of this tutorial as smoothly as it was shown on the video (https://docs.cypress.io/examples/examples/tutorials.html#1-Project-setup) because of getting error during npm install as below:

npm WARN [email protected] No repository field.
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"})

added 868 packages from 652 contributors and audited 4779 packages in 64.361s
found 512 vulnerabilities (167 low, 15 moderate, 329 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details 

after run npm audit fix I ended up with the following:

                                 Manual Review
             Some vulnerabilities require your attention to resolve

          Visit https://go.npm.me/audit-guide for additional guidance


  Moderate        Prototype Pollution

  Package         hoek

  Patched in      > 4.2.0 < 5.0.0 || >= 5.0.3

  Dependency of   json-server

  Path            json-server > request > hawk > boom > hoek

  More info       https://npmjs.com/advisories/566


  Moderate        Prototype Pollution

  Package         hoek

  Patched in      > 4.2.0 < 5.0.0 || >= 5.0.3

  Dependency of   json-server

  Path            json-server > request > hawk > cryptiles > boom > hoek

  More info       https://npmjs.com/advisories/566


  Moderate        Prototype Pollution

  Package         hoek

  Patched in      > 4.2.0 < 5.0.0 || >= 5.0.3

  Dependency of   json-server

  Path            json-server > request > hawk > hoek

  More info       https://npmjs.com/advisories/566


  Moderate        Prototype Pollution

  Package         hoek

  Patched in      > 4.2.0 < 5.0.0 || >= 5.0.3

  Dependency of   json-server

  Path            json-server > request > hawk > sntp > hoek

  More info       https://npmjs.com/advisories/566

found 4 moderate severity vulnerabilities in 7399 scanned packages
  4 vulnerabilities require manual review. See the full report for details.

I have updated hoek version but it didn't help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.