Search code examples
node.jsnpmpolymerubuntu-18.04

Package installed globally via npm is not visible in cmd


$ npm install -g polymer-cli
/home/kishore/.npm-global/bin/polymer -> /home/kishore/.npm-global/lib/node_modules/polymer-cli/bin/polymer.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/polymer-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ polymer-cli@1.7.4
updated 1 package in 8.834s
$ polymer --version
polymer: command not found

Solution

  • I specified the path $PATH to the directory where the global packages are installed!