Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when doing 'npm install' ... any ideas? #55

Open
AndrewBredar opened this issue Jul 4, 2020 · 2 comments
Open

Error when doing 'npm install' ... any ideas? #55

AndrewBredar opened this issue Jul 4, 2020 · 2 comments

Comments

@AndrewBredar
Copy link

npm WARN tar ENOENT: no such file or directory, lstat '/home/andrew/Projects/JPMC-tech-task-3-PY3/node_modules/.staging/chalk-e3bf26b7/types'
npm WARN tar ENOENT: no such file or directory, open '/home/andrew/Projects/JPMC-tech-task-3-PY3/node_modules/.staging/postcss-18e8c038/lib/postcss.d.ts'
npm ERR! path /home/andrew/Projects/JPMC-tech-task-3-PY3/node_modules/.staging/supports-color-e4630f0b
npm ERR! code ENOSPC
npm ERR! errno -28
npm ERR! syscall mkdir
npm ERR! nospc ENOSPC: no space left on device, mkdir '/home/andrew/Projects/JPMC-tech-task-3-PY3/node_modules/.staging/supports-color-e4630f0b'
npm ERR! nospc There appears to be insufficient space on your system to finish.
npm ERR! nospc Clear up some disk space and try again.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/andrew/.npm/_logs/2020-07-04T06_00_36_071Z-debug.log

Sounds like a disk space problem but I am running a virtual machine (Xubuntu on Oracle VM VirtualBox) and have hardly any disk space used up.

@deepak1011dp
Copy link

Download node-module.zip and extract the file in JPMC-tech-task-3-PY3.
After that run the terminal, change the directory
and run the command "npm start"

@Miguel-7
Copy link

Miguel-7 commented Nov 28, 2020

Try downloading the 'node_modules' folder through the link provided in the JPMC slides (I think it does not make any difference if you just use the same ones from task 2, at least that's what I did and it worked just fine. I think the file in task 3 is the same). Then, to overcome this error messages, copy the 'node_modules' folder to your 'JPMC-tech-task-3-PY3' folder. After this, go to your terminal/cmd programme and change the directory to the folder 'C:\Users\xxxxx\JPMC-tech-task-3-PY3\node_modules', and then, type in and enter the 'npm start' command. This should solve the 'Failed to compile' error related to 'npm install/npm start' that some people are facing. I guess the trick here it to use the 'JPMC-tech-task-3-PY3\node_modules' folder in the directory instead of the 'JPMC-tech-task-3-PY3' folder when we are entering these commands. I hope this helps.

(By the way, maybe it would be a good idea to close the issue if you are no longer working on this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants