cypress-io / cypress-tutorial-build-todo-starter Goto Github PK
View Code? Open in Web Editor NEWStarter project for the Cypress tutorial in which we build and test a todo app
License: MIT License
Starter project for the Cypress tutorial in which we build and test a todo app
License: MIT License
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
Steps to execute:
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
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!
Probably lock down versions and add testing job on CI
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.
This master issue contains a list of Renovate updates and their statuses.
These updates are awaiting their schedule. Click on a checkbox to ignore the schedule.
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.
there is a bug in this version of json-server -- need to update to fix.
npm update
The tutorial is based on the legacy Cypress version [email protected] released on Oct 23, 2019. This old version no longer works correctly under currently supported operating systems and Node.js versions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.