First,
Be sure that you have gulp and gulp.cmd (use windows search )
Then,
Copy the path of gulp.cmd ( C:\Users\XXXX\AppData\Roaming\npm)
Add this path to the Path envirement variable.
****OR***
Edit "PATH" environment variable and add %APPDATA%\npm
finally,
reopen cmd.
驗證
npm config list
出現 prefix = "C:\\Users\\bt18\\AppData\\Roaming\\npm"
沒有留言:
張貼留言