Using yarn to add a package removes existing modules
When I use Yarn in an ASP.NET Core 2.1 Web Application to add a package, e.g., jquery-autocomplete
, it removes the existing packages already installed. Why is it doing that? Does it have something to do with Popper.js
, which seems to be a dependency of the package I want to install when this happens?
At the command prompt in the project root I typed:
yarn add --modules-folder=wwwrootlib autocomplete
asp.net-core yarnpkg
|
show 7 more comments
When I use Yarn in an ASP.NET Core 2.1 Web Application to add a package, e.g., jquery-autocomplete
, it removes the existing packages already installed. Why is it doing that? Does it have something to do with Popper.js
, which seems to be a dependency of the package I want to install when this happens?
At the command prompt in the project root I typed:
yarn add --modules-folder=wwwrootlib autocomplete
asp.net-core yarnpkg
Correction: at the command prompt I entered yarn add --modules-folder=wwwrootlib jquery-autocomplete
– Momenee
Nov 12 '18 at 16:01
What do you mean with "removes existing packages"? Does it remove them from your package.json or does it remove files in lib folder?
– Christoph Lütjen
Nov 12 '18 at 20:26
It removes all files from the lib folder.
– Momenee
Nov 13 '18 at 16:18
Also, in the npm folder under Dependencies, the references to the files removed from the lib folder say "not installed,", e.g., bootstrap - not installed
– Momenee
Nov 13 '18 at 16:45
Ok, I fear you have "some setup" that works differently as you think it works. You'll have to do some research. In most cases npm modules are stored in a folder "node_modules" that is outside your wwwroot. Then there's a wwwroot/lib folder with js libs but these are not managed using npm but with bower or LibManager stevejgordon.co.uk/library-manager-libman-visual-studio-2017 .
– Christoph Lütjen
Nov 13 '18 at 17:41
|
show 7 more comments
When I use Yarn in an ASP.NET Core 2.1 Web Application to add a package, e.g., jquery-autocomplete
, it removes the existing packages already installed. Why is it doing that? Does it have something to do with Popper.js
, which seems to be a dependency of the package I want to install when this happens?
At the command prompt in the project root I typed:
yarn add --modules-folder=wwwrootlib autocomplete
asp.net-core yarnpkg
When I use Yarn in an ASP.NET Core 2.1 Web Application to add a package, e.g., jquery-autocomplete
, it removes the existing packages already installed. Why is it doing that? Does it have something to do with Popper.js
, which seems to be a dependency of the package I want to install when this happens?
At the command prompt in the project root I typed:
yarn add --modules-folder=wwwrootlib autocomplete
asp.net-core yarnpkg
asp.net-core yarnpkg
edited Nov 12 '18 at 17:28
tk421
3,40431426
3,40431426
asked Nov 12 '18 at 14:53
MomeneeMomenee
62
62
Correction: at the command prompt I entered yarn add --modules-folder=wwwrootlib jquery-autocomplete
– Momenee
Nov 12 '18 at 16:01
What do you mean with "removes existing packages"? Does it remove them from your package.json or does it remove files in lib folder?
– Christoph Lütjen
Nov 12 '18 at 20:26
It removes all files from the lib folder.
– Momenee
Nov 13 '18 at 16:18
Also, in the npm folder under Dependencies, the references to the files removed from the lib folder say "not installed,", e.g., bootstrap - not installed
– Momenee
Nov 13 '18 at 16:45
Ok, I fear you have "some setup" that works differently as you think it works. You'll have to do some research. In most cases npm modules are stored in a folder "node_modules" that is outside your wwwroot. Then there's a wwwroot/lib folder with js libs but these are not managed using npm but with bower or LibManager stevejgordon.co.uk/library-manager-libman-visual-studio-2017 .
– Christoph Lütjen
Nov 13 '18 at 17:41
|
show 7 more comments
Correction: at the command prompt I entered yarn add --modules-folder=wwwrootlib jquery-autocomplete
– Momenee
Nov 12 '18 at 16:01
What do you mean with "removes existing packages"? Does it remove them from your package.json or does it remove files in lib folder?
– Christoph Lütjen
Nov 12 '18 at 20:26
It removes all files from the lib folder.
– Momenee
Nov 13 '18 at 16:18
Also, in the npm folder under Dependencies, the references to the files removed from the lib folder say "not installed,", e.g., bootstrap - not installed
– Momenee
Nov 13 '18 at 16:45
Ok, I fear you have "some setup" that works differently as you think it works. You'll have to do some research. In most cases npm modules are stored in a folder "node_modules" that is outside your wwwroot. Then there's a wwwroot/lib folder with js libs but these are not managed using npm but with bower or LibManager stevejgordon.co.uk/library-manager-libman-visual-studio-2017 .
– Christoph Lütjen
Nov 13 '18 at 17:41
Correction: at the command prompt I entered yarn add --modules-folder=wwwrootlib jquery-autocomplete
– Momenee
Nov 12 '18 at 16:01
Correction: at the command prompt I entered yarn add --modules-folder=wwwrootlib jquery-autocomplete
– Momenee
Nov 12 '18 at 16:01
What do you mean with "removes existing packages"? Does it remove them from your package.json or does it remove files in lib folder?
– Christoph Lütjen
Nov 12 '18 at 20:26
What do you mean with "removes existing packages"? Does it remove them from your package.json or does it remove files in lib folder?
– Christoph Lütjen
Nov 12 '18 at 20:26
It removes all files from the lib folder.
– Momenee
Nov 13 '18 at 16:18
It removes all files from the lib folder.
– Momenee
Nov 13 '18 at 16:18
Also, in the npm folder under Dependencies, the references to the files removed from the lib folder say "not installed,", e.g., bootstrap - not installed
– Momenee
Nov 13 '18 at 16:45
Also, in the npm folder under Dependencies, the references to the files removed from the lib folder say "not installed,", e.g., bootstrap - not installed
– Momenee
Nov 13 '18 at 16:45
Ok, I fear you have "some setup" that works differently as you think it works. You'll have to do some research. In most cases npm modules are stored in a folder "node_modules" that is outside your wwwroot. Then there's a wwwroot/lib folder with js libs but these are not managed using npm but with bower or LibManager stevejgordon.co.uk/library-manager-libman-visual-studio-2017 .
– Christoph Lütjen
Nov 13 '18 at 17:41
Ok, I fear you have "some setup" that works differently as you think it works. You'll have to do some research. In most cases npm modules are stored in a folder "node_modules" that is outside your wwwroot. Then there's a wwwroot/lib folder with js libs but these are not managed using npm but with bower or LibManager stevejgordon.co.uk/library-manager-libman-visual-studio-2017 .
– Christoph Lütjen
Nov 13 '18 at 17:41
|
show 7 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264688%2fusing-yarn-to-add-a-package-removes-existing-modules%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264688%2fusing-yarn-to-add-a-package-removes-existing-modules%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Correction: at the command prompt I entered yarn add --modules-folder=wwwrootlib jquery-autocomplete
– Momenee
Nov 12 '18 at 16:01
What do you mean with "removes existing packages"? Does it remove them from your package.json or does it remove files in lib folder?
– Christoph Lütjen
Nov 12 '18 at 20:26
It removes all files from the lib folder.
– Momenee
Nov 13 '18 at 16:18
Also, in the npm folder under Dependencies, the references to the files removed from the lib folder say "not installed,", e.g., bootstrap - not installed
– Momenee
Nov 13 '18 at 16:45
Ok, I fear you have "some setup" that works differently as you think it works. You'll have to do some research. In most cases npm modules are stored in a folder "node_modules" that is outside your wwwroot. Then there's a wwwroot/lib folder with js libs but these are not managed using npm but with bower or LibManager stevejgordon.co.uk/library-manager-libman-visual-studio-2017 .
– Christoph Lütjen
Nov 13 '18 at 17:41