😊 Hello and thank you for watching! We'd love to hear your opinions in the comments section. 👉 For more videos on Cypress, please visit: ruclips.net/video/OvCLwh5vN8g/видео.html 👉 Don’t forget to SUBSCRIBE to our channel for more such videos & valuable content: ruclips.net/user/TestingFunda
Unable to initialize NPM , command not running giivng error like npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + npm init + CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
@@TestingFunda Yes it was there but the issue with VS code not refreshed automatically so i have relaunch it and then i was able to initialize and install cypress ,Thanks for your quick response 👍
Hello! Thank you very much for the video. Unfortunately, I also have a problem with Cypress. After typing the command npx cypress open, I get the following errors: code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\\Users\\Валерия\\AppData\\Local\\Cypress\\Cache\\12.17.3\\Cypress\ esources\\app\\packages\\socket\\index.js' ] } [5560:0804/010506.173:ERROR:network_service_instance_impl.cc(499)] Network service crashed, restarting service. My node.js version is 19 and Cypress version is 12.17.3. What could be the problem? :( I am using Windows 10.
@@TestingFunda Thank you very much for your reply. I was trying to install different versions, including 9 and 10. As I know, the latest version is 12 and smth, so 9 and 10 are not the latest for sure. Finally, I managed to install version 4.2 but when I try to upgrade it to version 9, I get the same error Module not found etc. This is my package.json - { "name": "project1", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "cypress": "^4.2.0" } }
What I don't like in version 4.2. is that I can run my tests only in Firefox 116, Edge 115 and Electron 80, but I prefer to use Chrome. That is why I would prefer to upgrade my Cypress version, but it doesn't let me by giving the error about modules :(
😊 Hello and thank you for watching! We'd love to hear your opinions in the comments section.
👉 For more videos on Cypress, please visit: ruclips.net/video/OvCLwh5vN8g/видео.html
👉 Don’t forget to SUBSCRIBE to our channel for more such videos & valuable content: ruclips.net/user/TestingFunda
Thank you ....this is very helpful
Welcome. Happy learning 👍
Unable to initialize NPM , command not running giivng error like
npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:1 char:1
+ npm init
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
@NeerajSharma-lm4mr do you have node installed ?
@@TestingFunda yes i have already installed
@@NeerajSharma-lm4mr Can you check if npm is working fine from cmd prompt ?
@@TestingFunda Yes it was there but the issue with VS code not refreshed automatically so i have relaunch it and then i was able to initialize and install cypress ,Thanks for your quick response 👍
Go to tutorial 3
159th...Thanks
I am getting errors when I am following the above steps
npm ERR! at Object. (D:\cypress-crash-course-master\project-1
ode_modules\string-width
ode_modules\strip-ansi\index.js:2:19)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1233:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1091:32)
npm ERR! at Module._load (node:internal/modules/cjs/loader:938:12)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1115:19)
npm ERR! at require (node:internal/modules/helpers:119:18)
npm ERR! at Object. (D:\cypress-crash-course-master\project-1
ode_modules\string-width\index.js:2:19)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1233:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1091:32)
npm ERR! at Module._load (node:internal/modules/cjs/loader:938:12) {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! requireStack: [
npm ERR! 'D:\\cypress-crash-course-master\\project-1\
ode_modules\\string-width\
ode_modules\\strip-ansi\\index.js',
npm ERR! 'D:\\cypress-crash-course-master\\project-1\
ode_modules\\cli-truncate\\index.js',
npm ERR! 'D:\\cypress-crash-course-master\\project-1\
ode_modules\\listr2\\dist\
enderer\\default.renderer.js',
npm ERR! 'D:\\cypress-crash-course-master\\project-1\
ode_modules\\listr2\\dist\\utils\
enderer.js',
npm ERR! 'D:\\cypress-crash-course-master\\project-1\
ode_modules\\listr2\\dist\\lib\\task.js',
npm ERR! 'D:\\cypress-crash-course-master\\project-1\
ode_modules\\listr2\\dist\\listr.js',
npm ERR! 'D:\\cypress-crash-course-master\\project-1\
ode_modules\\listr2\\dist\\index.js',
npm ERR! 'D:\\cypress-crash-course-master\\project-1\
ode_modules\\cypress\\lib\\tasks\\install.js',
npm ERR! 'D:\\cypress-crash-course-master\\project-1\
ode_modules\\cypress\\index.js'
npm ERR! ]
npm ERR! }
npm ERR!
npm ERR! Node.js v20.5.0
npm ERR! A complete log of this run can be found in: C:\Users\Pratiksha\AppData\Local
pm-cache\_logs\2023-07-27T07_15_21_540Z-debug-0.log
Can you please help with this?
Can you share the logs ?
hii i am also getting the same error did u get the soln
@@mdshahrukh7672 Can you share logs?
@@TestingFunda look
0 verbose cli C:\Program Files
odejs
ode.exe C:\Users\mdsha\AppData\Roaming
pm
ode_modules
pm\bin
pm-cli.js
1 info using npm@9.7.2
2 info using node@v18.16.0
3 timing npm:load:whichnode Completed in 4ms
4 timing config:load:defaults Completed in 6ms
5 timing config:load:file:C:\Users\mdsha\AppData\Roaming
pm
ode_modules
pm
pmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:C:\Users\mdsha\OneDrive\Desktop\amazon navbar\.npmrc Completed in 0ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:C:\Users\mdsha\.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\mdsha\AppData\Roaming
pm\etc
pmrc Completed in 0ms
14 timing config:load:global Completed in 1ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 15ms
17 timing npm:load:configload Completed in 15ms
18 timing config:load:flatten Completed in 3ms
19 timing npm:load:mkdirpcache Completed in 0ms
20 timing npm:load:mkdirplogs Completed in 1ms
21 verbose title npm install cypress
22 verbose argv "install" "cypress" "--save-dev"
23 timing npm:load:setTitle Completed in 1ms
24 timing npm:load:display Completed in 0ms
25 verbose logfile logs-max:10 dir:C:\Users\mdsha\AppData\Local
pm-cache\_logs\2023-08-05T12_52_54_838Z-
26 verbose logfile C:\Users\mdsha\AppData\Local
pm-cache\_logs\2023-08-05T12_52_54_838Z-debug-0.log
27 timing npm:load:logFile Completed in 13ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 65ms
31 timing arborist:ctor Completed in 0ms
32 timing arborist:ctor Completed in 0ms
33 silly logfile start cleaning logs, removing 2 files
34 timing idealTree:init Completed in 17ms
35 timing idealTree:userRequests Completed in 4ms
36 silly idealTree buildDeps
37 silly fetch manifest cypress@*
38 silly logfile done cleaning log files
39 silly placeDep ROOT cypress@ OK for: amazon-navbar@1.0.0 want: *
40 timing idealTree:#root Completed in 133238ms
41 timing idealTree:node_modules/cypress Completed in 0ms
42 timing idealTree:buildDeps Completed in 133240ms
43 timing idealTree:fixDepFlags Completed in 1ms
44 timing idealTree Completed in 133264ms
45 timing command:install Completed in 133274ms
46 verbose type system
47 verbose stack FetchError: request to registry.npmjs.org/cypress failed, reason: connect ETIMEDOUT 2606:4700::6810:1a22:443
47 verbose stack at ClientRequest. (C:\Users\mdsha\AppData\Roaming
pm
ode_modules
pm
ode_modules\minipass-fetch\lib\index.js:130:14)
47 verbose stack at ClientRequest.emit (node:events:513:28)
47 verbose stack at TLSSocket.socketErrorListener (node:_http_client:502:9)
47 verbose stack at TLSSocket.emit (node:events:525:35)
47 verbose stack at emitErrorNT (node:internal/streams/destroy:151:8)
47 verbose stack at emitErrorCloseNT (node:internal/streams/destroy:116:3)
47 verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
48 verbose cwd C:\Users\mdsha\OneDrive\Desktop\amazon navbar
49 verbose Windows_NT 10.0.22621
50 verbose node v18.16.0
51 verbose npm v9.7.2
52 error code ETIMEDOUT
53 error syscall connect
54 error errno ETIMEDOUT
55 error network request to registry.npmjs.org/cypress failed, reason: connect ETIMEDOUT 2606:4700::6810:1a22:443
56 error network This is a problem related to network connectivity.
56 error network In most cases you are behind a proxy or have bad network settings.
56 error network
56 error network If you are behind a proxy, please make sure that the
56 error network 'proxy' config is set properly. See: 'npm help config'
57 verbose exit 1
58 timing npm Completed in 133800ms
59 verbose unfinished npm timer reify 1691239975352
60 verbose unfinished npm timer reify:loadTrees 1691239975357
61 verbose code 1
62 error A complete log of this run can be found in: C:\Users\mdsha\AppData\Local
pm-cache\_logs\2023-08-05T12_52_54_838Z-debug-0.log
check out this log
@@mdshahrukh7672 not yet
Hello! Thank you very much for the video. Unfortunately, I also have a problem with Cypress. After typing the command npx cypress open, I get the following errors: code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Валерия\\AppData\\Local\\Cypress\\Cache\\12.17.3\\Cypress\
esources\\app\\packages\\socket\\index.js'
]
}
[5560:0804/010506.173:ERROR:network_service_instance_impl.cc(499)] Network service crashed, restarting service. My node.js version is 19 and Cypress version is 12.17.3. What could be the problem? :( I am using Windows 10.
Is this a new Installation? Can you share your package.json
Also, I suggest not to use the newer versions there are usually unable go the stable version
@@TestingFunda Thank you very much for your reply. I was trying to install different versions, including 9 and 10. As I know, the latest version is 12 and smth, so 9 and 10 are not the latest for sure. Finally, I managed to install version 4.2 but when I try to upgrade it to version 9, I get the same error Module not found etc. This is my package.json - {
"name": "project1",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"cypress": "^4.2.0"
}
}
What I don't like in version 4.2. is that I can run my tests only in Firefox 116, Edge 115 and Electron 80, but I prefer to use Chrome. That is why I would prefer to upgrade my Cypress version, but it doesn't let me by giving the error about modules :(
@@sofiasavescu3614 Package.json looks good to me. Which OS you are using?