0

I want to run npm pakage after installing

c:/>npm i -g pakagename
c:/>pakagename parameters

but I got error 'packagename' is not recognized as an internal or external command, operable program or batch file.

2 Answers2

0

try : npm install <package-name> -g

it will install that package globally to your system then check it by checking its version. like

 package --version

then do whatever you want like : https://stackoverflow.com/a/15157360/6747191

Community
  • 1
  • 1
Muhammad Shaharyar
  • 1,044
  • 1
  • 8
  • 23
0

To run your installed package with npm you can run it by this command

npm run-script <command> [-- <args>...]

Alias: npm run <command>

According to this documentation: https://docs.npmjs.com/cli/run-script

node_modules
  • 4,790
  • 6
  • 21
  • 37