Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm install failed because of virtual directory

Tags:

git

node.js

I'm trying to setup a new project which is a git repo stored on a virtual drive (wuala). Is it possible that this is not possible? Because when I try npm install I get the following error:

node.js:815
    var cwd = process.cwd();
                      ^
Error: ENOENT, no such file or directory
    at Function.startup.resolveArgv0 (node.js:815:23)
    at startup (node.js:58:13)
    at node.js:906:3
like image 657
Vincent Avatar asked Sep 27 '14 19:09

Vincent


People also ask

Why Cannot npm install?

The Npm command not found error can appear when you install or upgrade npm. On Windows, the cause of this error could be that a PATH or system variable is not correctly set. The error can also occur if you do not have npm or Node. js installed, have an outdated version, or have permission issues.

What is Eaccess error?

If you encounter “Error: EACCES: permission denied” while installing Typescript or any other program, it is due to permission problems. npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' In short, that means you do not have permission to install.17-Mar-2019.


2 Answers

Ok, so the issue was node not finding the current working directory. I didn't know it was only a virtual directory, after downloading the folder locally it works.

Now if only there is way to download the folder locally every time wuala is running & to be deleted afterwards...

like image 200
Vincent Avatar answered Sep 30 '22 03:09

Vincent


Could the problem be that Wuala doesn't accept empty folders? This topic seems to suggest non-standard behavior when it comes to empty folders:

https://support.wuala.com/forums/topic/wuala-does-not-accept-an-empty-folder-on-my-lacie-2big-as-sync-partner/

like image 38
Zeki Avatar answered Sep 30 '22 03:09

Zeki