when i try to install any version of bootstrap it automatically download the latest version, inspecting the output i've found
PATH=.\node_modules.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\Bower.cmd" install bootstrap#3.2.0 --force-latest --save
so in the repo at github they've mentioned a workaround
ECHO OFF
set params=%*
ECHO %params% | %WINDIR%\system32\FIND "--force-latest" >nul &
IF ERRORLEVEL 0 (call set params=%%params:--force-latest=%%%)
#"%~dp0\node" "%~dp0\node_modules\bower\bin\bower" %params%
it even output that it's installing the correct version
https://i.stack.imgur.com/IROoF.png
yet it installs the latest versions (currently Bootstrap v4.0.0-alpha.5)
any work around to not install all the packages i need manually ?
UPDATE 1 :
it's not a caching problem, i've thought about that so i've tried an older version i didn't try before, it still downloaded the lastest version, i've even cleared the cached versions and still downloading the lastest version
While this issue can be very frustrating, and not necessarily an answer to your specific inquiry, might I suggest opening a command window, change your directory to the project folder and then run bower install --save bootstrap.
This should bring down the correct version and should not interfere with any paths setup in your build files.
Merely a suggestion.
Good luck
Related
I'm trying to use MonoDevelop in order to work with .NET Core. In a brand new Linux Mint 20.1 machine, I installed MonoDevelop 7.8.4, and opened a project that I'm working on, and the IDE complained imediatelly:
Getting restore information for solution /home/REDACTED/project.sln
ApplicationName='/usr/bin/mono64', CommandLine='"/usr/lib/mono/msbuild/15.0/bin/MSBuild.dll" "/tmp/NuGetScratch/3r24uwj4.84i.nugetinputs.targets" /t:GenerateRestoreGraphFile /nologo /nr:false /v:q /p:RestoreBuildInParallel="False" /p:RestoreUseSkipNonexistentTargets="False"', CurrentDirectory='/home/REDACTED', Native error= Cannot find the specified file
The file /usr/bin/mono64 does not exist. Anyone knows how I can fix this?
UPDATE
When I try tobuild the project, it fails with the followiing error:
Error: NuGet packages need to be restored before building. NuGet MSBuild targets are missing and are needed for building. The NuGet MSBuild targets are generated when the NuGet packages are restored. (My.App)
This seems to be connected with the previous error message.
I have just installed Ubuntu and for anyone interested I found a solution.
In /usr/bin, make a mono64 symlink to mono-sgen. mono is already a symlink to that.
I will investigate the other tools suggested.
Background
I suddenly started getting a Meteor error:
~/.meteor/packages/meteor-tool/.1.4.0-1.1b1o7uq++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/bin/darwin-x64-v8-4.5/fibers.node is missing. Try reinstalling node-fibers?`
After extensive searching, I came to the conclusion that there isn't a known, straight-forward solution to this problem.
Possible Solution
I created a new Meteor project and that works. This is because it is at the latest version of Meteor, and fibers.node is properly installed in the 1.6 (latest version) directory.
The best solution looks to be removing my live project directory and recreating it with the same name (at Meteor's latest version) and then retrieving all the packages, settings and files (HTML, JS, CSS)
Question
What is the best way to do this so that:
I preserve all the packages that I have installed (there are many)
I preserve all the custom settings that have changed from default
I am able to bring all my files (I am assuming this will be simple copy of *.html, *.css and *.js from the original project)
I was able to resolve the error:
~/.meteor/packages/meteor-tool/.1.4.0-1.1b1o7uq++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/bin/darwin-x64-v8-4.5/fibers.node is missing. Try reinstalling node-fibers?
so did not need to go down the reinstalling project path.
I followed the steps in the accepted answer on this thread:
How can I completely uninstall and then reinstall Meteor.js?
Specifically:
mv .meteor .meteor.bak
sudo rm /usr/local/bin/meteor
sudo chown -R $(whoami) ~/.npm/
curl https://install.meteor.com/ | sh
meteor --version -> This will pull the required package for the version your project is at.
i copied a project from one computer to another. If i open the Project i get a error-message "Das angegebene SDK "Microsoft.NET.Sdk.Web" wurde nicht gefunden." Tanslate: "SDK ..Web not found".
I searched in another questions like here. But i don't have a global.json and i don't know, where i must place it.
And i think the problem is another where. on source computer, the solution can be load. only on target computer i can't load.
Edit: I installed the latest Update of Visual Studio 2017 Community
In the VS installer, make sure you selected the workloads for cross-platform and web development so the required components are added to your VS installation.
I had some different Versions of Core installed. But only the oldest one was used. The command dotnet --version shows me the problem. After deinstalling the old version, i can run my app :).
I had already uninstalled some out of date SDK versions. It turns out that left a dotnet.exe with no related sdk folder at C:\Program Files (x86)\dotnet\dotnet.exe. My machine like most is 64bit and newer sdks are installed at C:\Program Files\dotnet. The cmd path was preferring the older version. I renamed the folder C:\Program Files (x86)\dotnet to C:\Program Files (x86)\dotnet.old (I'm not 100% sure something doesn't crop up that needs the files there so just to be safe). Everything then works.
Recently, I created an asp.net core project using Visual Studio Code on Windows and pushed it to GitHub. When I cloned the repo from GitHub and attempted to do a dotnet restore on the project on Ubuntu, an error message stating there was no project.json file was returned. Can anyone point me to a resource that will show me how to properly restore a .net core project from a Linux machine? Thanks!
So it seems like on each of your machines you are running different versions of the .net core SDK.
A big caveat with what you are trying to do. Are you trying to use Project Rider from Jetbrains on Linux? This only works with project.json (As of the time of this post) so be wary of that.
Now there are two ways to do this. If you are wanting the very latest on Linux and don't care about using Rider, then you can go here : https://github.com/dotnet/core/blob/master/release-notes/download-archive.md and download the latest release for both Linux and Windows, install on both and you should be good to go.
If you do care about using Rider or you aren't ready to be strapped in for the wild ride of the latest release. Then you can do the following.
Find what version of the SDK you have on linux by typing into a terminal the following :
dotnet --version
This will spit out what version you have on linux. Go here and download the same version for windows and install it on your windows machine (https://github.com/dotnet/core/blob/master/release-notes/download-archive.md).
Now BEFORE you create a project, create a solution folder and create a file in it called global.json. Inside that put the following :
"sdk": {
"version": "1.0.0-preview2-003131"
}
Where the SDK version matches what you got from your linux terminal. Now create a folder for your project inside the solution folder. Run "dotnet new -t web" or a similar command to create your project. It will inspect the SDK version of the global.json and create a project with the tooling that matches. You should then be able to shift this project around any machine that has the same SDK installed, even if it also has the latest SDK's also.
If you do not create the global.json, it defaults to the latest version (Atleast on Windows).
Read a bit more about it here : http://dotnetcoretutorials.com/2017/02/17/developing-two-versions-net-core-sdk-side-side/
I tried to add the actual Ajax Control Toolkit to an .Net 4.5.1 WebSite. All the dependencies seem to be properly installed but the AjaxControlToolkit.dll file is not there.
I tried to uninstall and reinstall the package with the NuGet Console in Visual Studio 2013 and it always looks to be successful, but also always that dll is missing. Also restarting VS did not help.
In the packages.config the entry for the dll with version 8.0.0.0 is there and also in the packages directory there a directory AjaxControlToolkit.8.0.0.0. but only the AjaxControlToolkit.8.0.0.0.nupkg and the readme.txt files are there.
Any idea, what went wrong or what I could do?
Start a command prompt and run dir c:\ajaxcontroltoolkit.dll /s to see if the file is somewhere on your system. If it is, then copy it to the project's bin folder.
If it's not on your hard drive, go to http://ajaxcontroltoolkit.codeplex.com/releases/view/116091, download the version in question, and copy the .dll from the package to the project's bin folder.
In the back of my mind it seems that I ran into this a couple of weeks ago, also, so there may be a bug in NuGet.
Version 8.0.0.0 of the NuGet package is broken.
Update 15.1.2 is available.
P.S. Dependencies are extracted into separate packages (AjaxControlToolkit.HtmlEditor.Sanitizer, AjaxControlToolkit.StaticResources)