bahmutov / cypress-workshop-basics

Basics of end-to-end testing with Cypress.io test runner
https://glebbahmutov.com/cypress-workshop-basics/
43 stars 26 forks source link

npm install throws error on windows #38

Open michal-dobrzycki-coderslab opened 3 years ago

michal-dobrzycki-coderslab commented 3 years ago

Windows 10

λ npm -v
6.14.15

λ node -v
v14.18.1

Error when installing from root npm install

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path H:\cypress-workshop-basics\todomvc\node_modules\cypress-workshop-basics\todomvc\node_modules\@sindresorhus\is
npm ERR! dest H:\cypress-workshop-basics\todomvc\node_modules\cypress-workshop-basics\todomvc\node_modules\@sindresorhus\.is.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'H:\cypress-workshop-basics\todomvc\node_modules\cypress-workshop-basics\todomvc\node_modules\@sindresorhus\is' -> 'H:\cypress-workshop-basics\todomvc\node_modules\cypress-workshop-basics\todomvc\node_modules\@sindresorhus\.is.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\[user]\AppData\Roaming\npm-cache\_logs\2021-10-21T19_50_48_460Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 4294963238
npm ERR! cypress-workshop-basics@1.0.0 postinstall: `npm install --prefix todomvc`
npm ERR! Exit status 4294963238
npm ERR!
npm ERR! Failed at the cypress-workshop-basics@1.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\[user]\AppData\Roaming\npm-cache\_logs\2021-10-21T19_50_48_873Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 4294963238
npm ERR! cypress-workshop-basics@1.0.0 postinstall: `npm install --prefix todomvc`
npm ERR! Exit status 4294963238
npm ERR!
npm ERR! Failed at the cypress-workshop-basics@1.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\[user]\AppData\Roaming\npm-cache\_logs\2021-10-21T19_50_48_942Z-debug.log

It also creates a bunch of files inside /todomvc folder

λ git st                                                         
On branch main                                                   
Your branch is up to date with 'origin/main'.                    

Untracked files:                                                 
  (use "git add <file>..." to include in what will be committed) 
        todomvc/is-ci                                            
        todomvc/is-ci.cmd                                        
        todomvc/is-ci.ps1                                        
        todomvc/json-server                                      
        todomvc/json-server.cmd                                  
        todomvc/json-server.ps1                                  
        todomvc/mime                                             
        todomvc/mime.cmd                                         
        todomvc/mime.ps1                                         
        todomvc/nanoid                                           
        todomvc/nanoid.cmd                                       
        todomvc/nanoid.ps1                                       
        todomvc/rc                                               
        todomvc/rc.cmd                                           
        todomvc/rc.ps1                                           
        todomvc/semver                                           
        todomvc/semver.cmd                                       
        todomvc/semver.ps1                                       
bahmutov commented 3 years ago

Not sure why it would do it, never seen this before on attendee’s windows laptop

Sent from my iPhone

On Oct 21, 2021, at 15:53, Michał Dobrzycki @.***> wrote:

 Windows 10

λ npm -v 6.14.15

λ node -v v14.18.1 Error when installing from root npm install

npm ERR! code ENOENT npm ERR! syscall rename npm ERR! path @.\is npm ERR! dest @..is.DELETE npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, rename @.\is' -> @..is.DELETE' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users[user]\AppData\Roaming\npm-cache_logs\2021-10-21T19_50_48_460Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 4294963238 npm ERR! @. postinstall: npm install --prefix todomvc npm ERR! Exit status 4294963238 npm ERR! npm ERR! Failed at the @. postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users[user]\AppData\Roaming\npm-cache_logs\2021-10-21T19_50_48_873Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 4294963238 npm ERR! @. postinstall: npm install --prefix todomvc npm ERR! Exit status 4294963238 npm ERR! npm ERR! Failed at the @. postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users[user]\AppData\Roaming\npm-cache_logs\2021-10-21T19_50_48_942Z-debug.log It also creates a bunch of files inside /todomvc folder

λ git st On branch main Your branch is up to date with 'origin/main'.

Untracked files: (use "git add ..." to include in what will be committed) is-ci is-ci.cmd is-ci.ps1 json-server json-server.cmd json-server.ps1 mime mime.cmd mime.ps1 nanoid nanoid.cmd nanoid.ps1 rc rc.cmd rc.ps1 semver semver.cmd semver.ps1 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.