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: ENOENT, stat #3752

Closed
peterennis opened this issue Aug 11, 2014 · 5 comments
Closed

Error: ENOENT, stat #3752

peterennis opened this issue Aug 11, 2014 · 5 comments

Comments

@peterennis
Copy link

Windows 8.1, x32, ghost 0.5
Instruction here does not work:
https://github.com/TryGhost/Ghost
5. run npm install --production to install the node dependencies. If you see error Error: ENOENT on this step, make sure you are in the project directory and try again.

There is a bug in the node installer reported here:
http://stackoverflow.com/questions/25093276/nodejs-windows-error-enoent-stat-c-users-rt-appdata-roaming-npm
I have to manually create the folder:
'C:\Users%USERNAME%\AppData\Roaming\npm
and it works.

@ErisDS
Copy link
Member

ErisDS commented Aug 11, 2014

Hi @peterennis I need to look this up again but something in the depth of my brain tells me this is a problem with a specific node version. Please can you post the full environment of your blog?

There is a bug report template in our contributing guidelines that should give you a good idea what sorts of info to include.

@peterennis
Copy link
Author

Windows 8.1 32 bit
node v0.10.30
Installed node using node-v0.10.30-x86.msi
Problem repeated from scratch.
Output as follows:

C:\ae\ghost-0.5.0>echo %PATH%
C:\Users\peterennis\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Program File
s\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\Syst
em32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft
\Web Platform Installer;C:\Program Files\gs\gs9.14\bin;C:\Program Files\gs\gs9.
14\lib;C:\Program Files\TortoiseGit\bin;C:\Program Files\Microsoft SQL Server\12
0\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Bi
nn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\Microso
ft SQL Server\120\Tools\Binn\ManagementStudio;C:\Program Files\nodejs;C:\Users
\peterennis\AppData\Local.meteor;C:\Users\peterennis\AppData\Roaming\npm

C:\ae\ghost-0.5.0>dir C:\Users\peterennis\AppData\Roaming\npm
Volume in drive C is W81
Volume Serial Number is 309F-C170

Directory of C:\Users\peterennis\AppData\Roaming

File Not Found

C:\ae\ghost-0.5.0>npm install --production
Error: ENOENT, stat 'C:\Users\peterennis\AppData\Roaming\npm'

C:\ae\ghost-0.5.0>mkdir C:\Users\peterennis\AppData\Roaming\npm

C:\ae\ghost-0.5.0>npm install --production

C:\ae\ghost-0.5.0>

@shindakun
Copy link
Contributor

@ErisDS This is indeed specific to the 10.30 installer. nodejs/node-v0.x-archive#8141

@ErisDS
Copy link
Member

ErisDS commented Aug 12, 2014

I think this is potentially a regression because it has been reported before in npm: npm/npm#3664

Sorry @peterennis for the total crappiness of this - but it's problem in node/npm, not with the Ghost software so there's very little I can do beyond update our windows install docs with a note to explain, which I have done. Hopefully Node will update their windows installer soon.

@ErisDS ErisDS closed this as completed Aug 12, 2014
@ui-vault
Copy link

Try updating the npm and run again with command npm install npm -g. This worked for me

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

4 participants