NPM Notes

作者: Kreiven | 来源:发表于2018-04-20 14:51 被阅读0次

NPM global directory

C:\Users\xxx\AppData\Roaming\npm

Command Alias

If I have no access to modify system path, when I have some packages installed, I might use alias command. I have installed @angular/cli, in the way for using ng command.

$ alias ng='/c/Users/what_a_poor_user_with_no_access/AppData/Roaming/npm/ng'

List all global installed packages

$ npm list -g --depth=0

Windows Command Prompt

//get path environment
C:\Users\xxx>set path 

//append items to path. This is only available on CURRENT cmd window.
C:\Users\xxx>set path=%path%;C:\MyEnvironmentDirectory

相关文章

网友评论

    本文标题:NPM Notes

    本文链接:https://www.haomeiwen.com/subject/qhaakftx.html