app. In python, I can do
os.system("npm install express")
However, In C#, I tried to do
process.start("npm install express")
and it throws a big error saying no file exists in current directory. How can I do the same task like python?
You need a package.json for executing npm i anypackage
npm will make that file if doesn't exists. And it is just an example.
Обсуждают сегодня