P
P
Peter2015-12-31 12:44:05
npm
Peter, 2015-12-31 12:44:05

How to fix NPM directory creation error?

npm run build-jsI run the command

"scripts": {
    "build-js": "browserify ./src/js/main.js | uglifyjs -mc > ./www/js/main.js",
  }

but if there is no www or js folder, an error pops up.
How can I make these folders create themselves if they don't exist?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artur Atnagulov, 2016-01-07
@atnartur

And with the rights all the rules? Maybe they would create themselves if they could. What OS?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question