About using npm install command after a successful execution of the command can not find Shique reported problems

Npm install newman use the command #
 ~ $ npm install newman - , Ltd. Free Join 
...
 / root / the Node-V6. 9.1 -linux-x64 / bin / newman -.> / Root / the Node-V6 9.1 -linux-x64 / lib / node_modules / Newman / bin / newman.js
 . / root / the Node-V6 9.1 -linux-x64 / lib 
└── Newman @ 3.3 . 0    # Newman successful installation 

# but the command will execute an error
 ~ $ Newman - v 
bash: Newman: not found ... the command 

# install additional command is the same

Solution: Use a common command configuration environment variable

echo -e "export PATH=$(npm prefix -g)/bin:$PATH" >> ~/.bashrc && source ~/.bashrc

over

Reference Links: https://blog.csdn.net/wirelessqa/article/details/53393248

Guess you like

Origin www.cnblogs.com/fuck-you/p/12500249.html