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

npm install is failing for me on Windows 10 #26

Closed
marmite22 opened this issue Feb 13, 2018 · 4 comments
Closed

npm install is failing for me on Windows 10 #26

marmite22 opened this issue Feb 13, 2018 · 4 comments

Comments

@marmite22
Copy link

I don't know if I'm doing something wrong or something is wrong with my config but I'm trying to install generator-phaser-plus and it's not working.

Via NPM and I get the following error.

$ npm install -global generator-phaser-plus
npm ERR! path C:\Users\Jesse\AppData\Roaming\npm\node_modules\generator-phaser-plus\cli.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\Jesse\AppData\Roaming\npm\node_modules\generator-phaser-plus\cli.js'
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\Jesse\AppData\Roaming\npm-cache\_logs\2018-02-13T23_29_20_809Z-debug.log
/c/Program Files/nodejs/npm: line 34: 12576 Signal 112              (core dumped) "$NODE_EXE" "$NPM_CLI_JS" "$@"

I can't see the package in my global node_modules folder.

Installing via Yarn appears to work (I can see the folder in Yarn's global node_modules folder) but after installation running phaser-plus returns phaser-plus: command not found

@marmite22
Copy link
Author

I tested this on my work Mac this morning and seem to have the same issue there too.

jesse:Workspace/ $ npm install --global generator-phaser-plus       
npm ERR! path /usr/local/lib/node_modules/generator-phaser-plus/cli.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/generator-phaser-plus/cli.js'
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!     /Users/jesse/.npm/_logs/2018-02-14T10_36_06_646Z-debug.log
jesse:Workspace/ $ node -v                                           
v8.1.3

@rblopes
Copy link
Owner

rblopes commented Feb 14, 2018

Thanks for reporting this one. It seems I forgot to update the generator package listing when I did f0a256e and the cli.js script is missing. 🤦‍♂️

I will be publishing the package with the fix on npm later.

@marmite22
Copy link
Author

Thanks! Project looks cool, I look forward to using it!

@marmite22
Copy link
Author

Yay, it works now. Thank you.

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

No branches or pull requests

2 participants