node.js - npm creates huge number of files, what am I doing wrong? -
the way read this section of phpstorm manual, add development tool can this:
if tool documentation or test framework, of no need going re-use application, helpful have excluded download future. done marking tool development dependency, means adding tool in devdependencies section of package.json file.
with phpstorm, can have tool marked development dependency right during installation. 1 of following:
switch project root folder , type following command @ command line prompt:
npm install --dev <tool name>
[...]
it seems not correct or understood wrong, because when ran
npm install --dev del
to tool can delete files clear cache during development, npm created nested folder structure several gigabytes in size millions of files. killed , spent half hour moving deeper folders further in tree paths short enough windows delete them.
what did wrong?
by way, adding package.json -> devdependencies , running npm install
works fine.
node 0.12.0, npm 2.5.1
known bug, https://github.com/npm/npm/issues/5554. flag removed - see https://github.com/npm/npm/issues/6200. i'd suggest using npm install --save-dev
instead - need creating package.json first. in phpstorm can done using file | new | package.json
Comments
Post a Comment