Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

windows: Create npm folder in AppData directory #8838

Closed
wants to merge 3 commits into from

Conversation

rockarts
Copy link

@rockarts rockarts commented Dec 8, 2014

Create the empty npm folder in Roaming\Appdata so that
non-Administrator users have a place to store global packages.
This fixes the error Error: ENOENT, stat error that occurs
when a user tries to run the npm install command.

Fixes #8141

Create the empty npm folder in Roaming\Appdata so that
non-Administrator users have a place to store global packages.
This fixes the error Error: ENOENT, stat error that occurs
when a user tries to run the npm install <package> command.

Fixes nodejs#8141
@piscisaureus
Copy link

Doesn't it make more sense to add the ComponentRef for the appdata folder to the npm feature instead of the NodeRuntime feature?

@rockarts
Copy link
Author

rockarts commented Dec 9, 2014

Yeah it does make more sense to put it under the npm feature element. I'll move it there and get you a new fix.

@kolawoletech
Copy link

Better still you can install a older version of nodeJS. That works. there is a bug with version 32

Steven Rockarts and others added 2 commits December 9, 2014 18:38
Create the empty npm folder in Roaming\Appdata so that
non-Administrator users have a place to store global packages.
This fixes the error Error: ENOENT, stat error that occurs
when a user tries to run the npm install <package> command.

Fixes nodejs#8141
piscisaureus pushed a commit to nodejs/node that referenced this pull request Jan 12, 2015
Create the empty npm folder in Roaming\Appdata so that non-Administrator
users have a place to store global packages. This fixes the error Error:
ENOENT, stat error that occurs when a user tries to run the npm install
<package> command.

Bug: nodejs/node-v0.x-archive#8141
PR: nodejs/node-v0.x-archive#8838
Reviewed-by: Bert Belder <[email protected]>

Please enter the commit message for your changes. Lines starting
@piscisaureus
Copy link

lgtm code-wise.
Fixed indentation errors and squashed; nodejs/node@e431cae

@jfroffice
Copy link

+1 still not working till node v0.10.32 🎱

piscisaureus pushed a commit that referenced this pull request Jul 1, 2015
Create the empty npm folder in Roaming\Appdata so that non-Administrator
users have a place to store global packages. This fixes the error Error:
ENOENT, stat error that occurs when a user tries to run the npm install
<package> command.

Bug: #8141
PR: #8838
Reviewed-by: Bert Belder <[email protected]>
piscisaureus pushed a commit that referenced this pull request Jul 1, 2015
Create the empty npm folder in Roaming\Appdata so that non-Administrator
users have a place to store global packages. This fixes the error Error:
ENOENT, stat error that occurs when a user tries to run the npm install
<package> command.

Bug: #8141
PR: #8838
Reviewed-by: Bert Belder <[email protected]>
@piscisaureus
Copy link

Landed in 18d413d (v0.10) and 4ffbce4 (v0.12).

misterdjules pushed a commit to misterdjules/node that referenced this pull request Jul 16, 2015
Create the empty npm folder in Roaming\Appdata so that non-Administrator
users have a place to store global packages. This fixes the error Error:
ENOENT, stat error that occurs when a user tries to run the npm install
<package> command.

Bug: nodejs#8141
PR: nodejs#8838
Reviewed-by: Bert Belder <[email protected]>
jBarz pushed a commit to ibmruntimes/node that referenced this pull request Nov 4, 2016
Create the empty npm folder in Roaming\Appdata so that non-Administrator
users have a place to store global packages. This fixes the error Error:
ENOENT, stat error that occurs when a user tries to run the npm install
<package> command.

Bug: nodejs#8141
PR: nodejs#8838
Reviewed-by: Bert Belder <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants