GZ Xue GZ Xue - 7 months ago 34
Javascript Question

I have installed slush-phaser-webpack globally but it is not working

I followed the doc of slush-phaser-webpack link

$ sudo npm install -g slush-phaser-webpack


Here is the output of npm :
└── slush-phaser-webpack@0.2.2
.
There is no error during installation.

I get this error
slush: command not found
after I type in 'slush'.

Env: mac osx el capitan

Answer

The plugin slush-phaser-webpack is correctly installed.

slush: command not found

This is because I didn't have slush installed on my computer.I need to install it first.Here is the code:

npm i slush -g
npm i --save-dev slush-phaser-webpack