Article From:https://segmentfault.com/q/1010000011707996
Question:

Strictly follow the official website steps.localInstallation and operation hintscommand not found
StackOverflow There are related problems. The answer to high votes is global installation. But I don’t think this installation is elegant enough. Some people put forward the official website suggestion under the high vote answer is not to install the overall situation, the respondent said that things will always change? But the installation can not run directly.
I do not have global installation now.package.jsonRigascript:webpack,Then?npm start
Excuse me, how to solve this problem?loaclInstallation and operationwebpack Tipscommand not foundThis problem.
PS:modifyPathThe way has been tried, it has no effect.

Answer 0:

That’s how it works.

node_modules/.bin/webpack

I usually operate on custom shell commands.

$ alias lwebpack="node_modules/.bin/webpack"

It can also be used. This command will not work if it can not be executed.

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *