When I attempt to install WindowsAzure.Storage via nuget (using the command found here: https://www.nuget.org/packages/WindowsAzure.Storage/)
Install-Package WindowsAzure.Storage -Version 8.4.0
I get the following error.
Install-Package : Unable to find package PlTagHelpers. No packages exist with this id in source(s): C:\Program
Files\dotnet\sdk\NuGetFallbackFolder, Microsoft Visual Studio Offline Packages, nuget.org
At line:1 char:1
+ Install-Package WindowsAzure.Storage -Version 8.4.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCom
mand
Install-Package : Unable to find package PlStorage. No packages exist with this id in source(s): C:\Program
Files\dotnet\sdk\NuGetFallbackFolder, Microsoft Visual Studio Offline Packages, nuget.org
At line:1 char:1
+ Install-Package WindowsAzure.Storage -Version 8.4.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCom
mand
Install-Package : Unable to find package PlBlobLibrary. No packages exist with this id in source(s): C:\Program
Files\dotnet\sdk\NuGetFallbackFolder, Microsoft Visual Studio Offline Packages, nuget.org
At line:1 char:1
+ Install-Package WindowsAzure.Storage -Version 8.4.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCom
mand
Install-Package : Package restore failed. Rolling back package changes for 'Heartland'.
At line:1 char:1
+ Install-Package WindowsAzure.Storage -Version 8.4.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCom
mand
Unable to find package PlTagHelpers. No packages exist with this id in source(s): C:\Program Files\dotnet\sdk\NuGetFallbackFolder, Microsoft Visual Studio Offline
According to your exception, I assume that when you try to install WindowsAzure.Storage that you choose the package source Microsoft Visual Studio Offline, please have a try to select package source nuget.org or All then it should work.
We also need to note the SDK dependencies, more details please refer to WindowsAzure.Storage
Related
I tried installing discord.js on my terminal in Visual Studio Code. But whenever I run npm init -y or npm install discord.js, I get an error message that says this every time:
npm : The term 'npm' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is
correct and try again. At line:1 char:1
npm
+ CategoryInfo : ObjectNotFound: (npm:String)
[], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
How do I fix this and install discord.js?
It seems like you dont have Node.js installed on your machine.
You can download it here.
When installed, just use npm i discord.js.
Can somebody help me with this one? I really don't know why is this happening.
Unrecognized token in source text.
At line:1 char:13
+ npm install <<<< #babel/core #babel/cli --save-dev
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnrecognizedToken
Got the same error. You could try enclosing the text containing at-sign within apostrophes ('), like this:
npm install --save-dev '#babel/core' '#babel/cli'
Got the answer right here: https://github.com/ng-select/ng-select/issues/1114
Hope you ran the below from npm prompt
npm install --save-dev #babel/core #babel/cli
When I create angular project on desktop/angular8/firstapp and type the following serve command in visual studio code
PS C:\Users\User\Desktop\angular8\firstapp> ng --open serve
I get the following error
ng : File C:\Users\User\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ ng --open serve
+ ~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
What is the reason for this, how can I get rid of this. Thanks in advance
I have found the answer
because powershell doesn't support for the angular commands. Then you have to do is,
Remove ng.ps1 from the directory C:\Users\%username%\AppData\Roaming\npm\ then try clearing the npm cache at C:\Users\%username%\AppData\Roaming\npm-cache\
After installing express and express-generator I am not able to use 'express' keyword.
Tried this command
npm install express
and
npm install express-generator
cmd> express --v
when checking express --v in cmd it should display installed version but i am getting the below error.
express : The term 'express' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ express --v
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (express:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
to be able to use express in terminal , you need to install the package globally.
npm i -g express
express
if you don't install it globally then you can access it only within your project scope from package.json scripts.
for reference checkout the link -> https://docs.npmjs.com/misc/scripts
I just tried to install DoNetOpenAuth Nuget package and it failed for an ASP.net MVC 4 application:
PM> Install-Package DotNetOpenAuth
Attempting to resolve dependency 'DotNetOpenAuth.OpenId.RelyingParty.UI (= 4.3.2.13293)'.
Attempting to resolve dependency 'DotNetOpenAuth.OpenId.Core.UI (= 4.3.2.13293)'.
Attempting to resolve dependency 'DotNetOpenAuth.Core.UI (= 4.3.2.13293)'.
Attempting to resolve dependency 'DotNetOpenAuth.Core (= 4.3.2.13293)'.
Attempting to resolve dependency 'Microsoft.Net.Http'.
Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.1.3)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.4)'.
Attempting to resolve dependency 'DotNetOpenAuth.Mvc (= 4.3.2.13293)'.
Install-Package : Unable to resolve dependency 'DotNetOpenAuth.Mvc (= 4.3.2.13293)'.
At line:1 char:1
+ Install-Package DotNetOpenAuth
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I downloaded the binaries from DonetOpenAuth.net and the bin library for .net 4.5 had just one DLL -- DotNetOpenAuth.dll. It didn't have the other DLLs such as DotNetOpenAuth.Core, DotNetOpenAuth.OpenId, DotNetOpenAuth.OpenId.RelyingParty etc.
TIA for your help.
Install-Package DotNetOpenAuth -version 4.3.3.13295
I had the same issue - went back a version and it installed fine:
Install-Package DotNetOpenAuth -version 4.3.1.13153
This was bug #309. Just fixed. Version 4.3.3 has the fix.