Reputation: 151
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
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
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