rblopes / generator-phaser-plus

[🛑 DISCONTINUED] It has been a long journey but development of `generator-phaser-plus` is now over. I recommend you have a look and fork `yandeu/phaser-project-template` instead.
https://github.com/yandeu/phaser-project-template
MIT License
144 stars 14 forks source link

npm install is failing for me on Windows 10 #26

Closed marmite22 closed 6 years ago

marmite22 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Thanks for reporting this one. It seems I forgot to update the generator package listing when I did f0a256e3aa24807fd907be1ec69a12fd63ffeedc and the cli.js script is missing. :man_facepalming:

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

marmite22 commented 6 years ago

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

marmite22 commented 6 years ago

Yay, it works now. Thank you.