Yaakov Klein
Yaakov Klein

Reputation: 151

Error with google-api-nodejs-client

I have a same problem as in this question: Can't find module googleapis

I tried to implement the Max's solution, but when I run npm run build as in

npm i typescript -g
npm run build

I get this error in the log:

 verbose stack Error: missing script: build

How can I fix this?

Upvotes: 1

Views: 320

Answers (2)

Yaakov Klein
Yaakov Klein

Reputation: 151

i find other solution for first question Can't find module googleapis run this command: npm i -S [email protected] in npm_modules folder

Upvotes: 0

Attersson
Attersson

Reputation: 4876

Check your package.json : "scripts" should have an object where your scripts are defined. That error means "build" is not defined in that object.

When you type

npm run something

npm searches for something defined there and executes it in command line.

Upvotes: 1

Related Questions