rgbz Posted February 27, 2018 Share Posted February 27, 2018 I would love to know how come npm install doesn't work on a mac. I have tried numerous times during the last months, when it was still in beta. I am running sudo npm install [email protected] and I always get the following issues, also I am using node v8.9.4 I know they are just warnings, but nothing is in my local directory. I have also tried with the --save flag. I checked the global location just in case and there is nothing there either xxx-MacBook-Pro:phaser3 xxx$ sudo npm install [email protected] Password: npm WARN saveError ENOENT: no such file or directory, open '/Users/xxx/package.json' npm WARN enoent ENOENT: no such file or directory, open '/Users/xxx/package.json' npm WARN xxx No description npm WARN xxx No repository field. npm WARN xxx No README data npm WARN xxx No license field. + [email protected] updated 1 package in 2.42s Link to comment Share on other sites More sharing options...
samme Posted February 27, 2018 Share Posted February 27, 2018 That's normal. If you're starting a new project, create an empty folder, open it and do npm init # … npm install -S phaser Link to comment Share on other sites More sharing options...
rgbz Posted February 27, 2018 Author Share Posted February 27, 2018 Thank you Link to comment Share on other sites More sharing options...
Recommended Posts