G
G
Gabe Jonson2018-03-09 17:15:04
Windows
Gabe Jonson, 2018-03-09 17:15:04

Npm how to use local packages?

How can local package managers be used?
Sobsna webpack example.
When I write the command ./node_modules/webpack/.bin (path example), the console tells me:
"." is not a team.
Like this "." is not a command to overcome and run this script?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2018-03-09
@Nipheris

1. Not ./node_modules/webpack/.bin, a ./node_modules/.bin/webpack.
2. You need to quote the path if you use a forward slash and use the classic command line (cmd). Those. total: "./node_modules/.bin/webpack". It is no longer necessary to quote parameters, i.e. "./node_modules/.bin/webpack" --watch. You can use a backslash and not quote it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question