Setting angular 2 with VS2015 - angularjs

I have a pretty annoying problem and I am not getting the right thing to do. Whenever I try to 'Restore Packages' by right clicking the file 'package.json' in Visual Studio 2015 I get:
npm command completed with exit code 1
and nothing gets installed in my project.
I have a screen shot of the error I get you may see that:

To avoid such type of issue you can do following things
1- Goto Tools>Options
2- Click 'Projects & Solutions' Tab and go to 'External Web Tools'.
3- Add a new entry of your local node.js installation eg c:/programms/nodejs/(if not exist) and move it to the top of the list.
4- Restart Visual Studio and restore packages.
That will work if npm version is at least 3.x.x.

Related

Project build halts on: "Build delayed until Bower/npm packages finish restoring."

In VS 2017, I created a new ASP.NET Core Web Application using the Angular template.
The project however does not run, it gets stuck on:
Build delayed until Bower/npm packages finish restoring.
I see that a background task is running, but this goes on for ever and doesn't make any progress.
I had a similar problem and I followed the below steps to get around it.
Disable Package restore:
Go to Tools -> Options -> Project and Solutions -> Web Package Management -> Package Restore.
Set False to 'Restore on Project Open' and 'Restore on Save'
After disabling, I opened a terminal and manually installed all the packages. I used Yarn to install the packages and faced no problems.
Visual Studio often halts during project builds because of timeouts. To get around that, I used the command yarn --network-timeout 60000.
Hope this helps!
i had a sort-a-like problem. This is what i did to solve it:
check the folder node_modules
on my pc it was empty
open the folder in a command prompt (with administrator privileges)
run "npm install", this will download all referenced node modules
(see package.json) to your pc
then when you build in VS Studio,the bower delay is gone
I was able to workaround my indefinite “Build delayed until Bower/npm packages finish restoring.” publishing delay in VS.NET 2019 Community Edition by:
Clicking on the [Cancel] button in the [Web Publish Activity] tab.
Exiting and restarting VS.NET with Administrative privileges
Opening the solution and publishing my app again.
In my case, it looks like it was the lack of Administrative privileges that caused the infinite delay.
For react project I solved it using these steps.
1) right click on the project and select >build
2) Then in output box showing "Build delayed until Bower/npm packages finish restoring."
3) Wait few minutes.After building the project you can see
Build delayed until Bower/npm packages finish restoring.
1>------ Build started: Project: chatApplication, Configuration: Debug Any CPU ------
1>chatApplication -> D:\IdeaProjects\chatApplication\chatApplication\bin\Debug\netcoreapp2.1\chatApplication.dll
1>chatApplication -> D:\IdeaProjects\chatApplication\chatApplication\bin\Debug\netcoreapp2.1\chatApplication.Views.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
I had some problem in visual stduio 2019 aspnet core & angular project.
I have solved it using this way.
Manually run npm install via cmd,
And if after run project via visual studio 2019, Project run successfuly. (Without “Build delayed until Bower/npm packages finish restoring.”)
This way worked for me

install not complete mongodb on windows 7 64 bit

when install mongo database on windows 7
is not complete instillation
image of the problem
how to solve this problem
I too have the same issue while installing mongodb-win32-x86_64-2008plus-ssl-3.6.3-signed.msi
Follow the below steps to resolve the problem
Run the installer with a double-click.
Click next.
Accept the License Agreement.
Select the Complete installation type and click Install
Uncheck the Install Compass option (by default this checked and Compass requires the Microsoft .NET Framework version 4.5 or later)
With in a minute time installation will get complete and you can see the exe files under C:\Program Files\MongoDB\Server\3.6\bin
You can follow the url https://docs.mongodb.com/compass/master/install/ for installing Compass (The GUI for MongoDB) later.

Trouble installing/using Atom packages on offline PC

I'm currently in the process of setting up my workspace on my company machine and have chosen Atom as my text editor of choice. The computer is not connected to the internet, so I will have to "manually" install packages. I've been having difficulties installing packages via usb transfer. I've copied and extracted packages to my ~/.atom/packages
The package I'm attempting to use (atom-beautify) shows up on the packages tab on the top of the editor. It also shows up under [Settings] -> [Packages].
When attempting to use the beautify I get the error message "Failed to activate the atom-beautify package" ... Cannot find module 'event-kit'
Also using Windows 10. Any help is greatly appreciated!
You can solve your problem. There are some way to solve your problem.I did not used win10, I am on win7.Yet you can try.
Paste atom-beautify to C:\Users\User.atom\packages and change pacakage.json
atom-beautify needs a dependency named bluebird, if you can try to add this to atom.
It step 1 or step 2 failed then goes to step 2,
Connecting your pc to internet run this command from your terminal: apm install atom-beautify
Source: https://github.com/Glavin001/atom-beautify/issues/879#issuecomment-218753674
Safest bet with installing atom packages offline is to install it on another online PC and then copy all contents from your packages location to offline PC.

Javascript error on new install of 7.0.1.0.2

I've had a good look around and can't see anyone else with the same issue.
I've downloaded the latest install for DNN (via this page https://dotnetnuke.codeplex.com/relea...) and tried to run it as a new install (via visual studio development web server) but the site crashes on the second page of the wizard, I get a javascript error "Invalid character" in the jquery library and nothing happens are that.
Using the VS javascript debugger I can see in the call stack that the error seems to stem from some javascript used to update the progress bar found on the installation page, the line in question is...
var result = jQuery.parseJSON(status);
If I let the code run from here I get a further error of "Unable to get property 'progress' of undefined or null reference" in the same block of javascript code a few lines down...
if (result.progress < $("#progressbar").progressbar('value')) return;
Details of my installation;
Running on Windows 7 64 bit (have also tried a Windows 7 32 bit but get same error).
Using VS 2010
Installing to new (blank) database on MS SQL server 2008
Using a SQL user for authentication
Have tried the suggestion of "unblocking" the zip file before downloading
Given the NETWORKSERVICE user full control over the DNN website folder
I've tried the installation with IE 10 & the latest version of Chrome (30.0.1)
In addition to trying to run the installation using the wizard I also found that you can disable the wizard via this web.config setting;
Running with this I am able to successfully install DNN but when redirecting from the basic wizard page to the DNN site I get an object not set to an instance of an object error on this line...
if (PortalSettings.ActiveTab.PageHeadText != Null.NullString && !Globals.IsAdminControl())
... of the default.aspx code behind
I had a play with DNN 6 last year and didn't have any issues installing so to confirm that was still the case I downloaded the last release of DNN 6 (version 6.0.2.09 from here https://dotnetnuke.codeplex.com/relea...) and was again able to install that version without any problems at all using the same SQL server and running through VS 2010.
Any help would be appreciated.
Thanks,
I was having the same problem and switching the pipeline mode for the application pool to "Integrated" fixed the issue on PortalSettings comming on null on this line:
if (PortalSettings.ActiveTab.PageHeadText != Null.NullString && !Globals.IsAdminControl())

How to solve 503 error accessing CollabNet Subversion Console?

I'm using Collabnate Subversion Edge.
I'm getting below error when trying to access URL http://localhost:3343/csvn.
Collbnate is set up on Windows Server 2008.
HTTP ERROR: 503
Problem accessing /csvn/. Reason:
Service Unavailable
Powered by Jetty://
How to solve it?
I spent two days fighting with the same problem. It turned out that CollabNet Subversion Edge 4.0.11 does not support Java 8.
The following procedure helped me make CN Subverion Edge 4.0.11 work again on Windows 7:
1) Uninstall CollabNet Subversion
2) Uninstall Java 8 (I had Java 7 and 6 side by side, so after uninstalling the 8, 7 picked up after I added it to PATH variable. It is important to add it at the very beginning of the path, otherwise Windows\System32\java.exe will be taken, which was not good for me also)
3) Install CollabNet Subverion (the important thing is to uncheck the "Run CollabNet ..." check box in the final screen. It looks like the installer is still creating files at the end and only after I have clicked OK in the final screen the needed configuration files have been created in data/conf folder.
4) Make sure that data/conf/httpd.conf file is created. If it is there, got to services (services.msc) and start server manually
Now launch the browser and navigate to localhost:3343/csvn.
Good luck.
1) Install Java 7
2) In file \csvn\svcwrapper\conf\wrapper.conf change from #wrapper.java.command.maxVersion=1.6 to wrapper.java.command.maxVersion=1.7
3) Run \csvn\svcwrapper\bat\runConsole.bat
Good luck.
Check in c:/csvn/data/logs for a log that starts with "console". Then find the error(s) and check what is wrong.
Did you try restarting the service ?
I had the same issue, CollabNet Subversion Edge version 4.0.4. In my case the problem was updating the JAVA_HOME from JDK 1.6 to JDK 1.7.
I finally resolved it changing the file:
C:\PROGRA~1\csvn\svcwrapper\conf\wrapper.conf
I changed the value of the property: wrapper.java.command:java
wrapper.java.command=C:/PROGRA~1/Java/jdk1.6.0_45/bin/java
So the csvn now runs with 1.6 as before. And it works again as a service automatically.
Good luck!!
There's an alternative issue that results in the same error: The database may get corrupted. This is what just happened to me. The above answers where not working in this case. As Subversion Edge 5.0.1 comes bundled with jre8, it would be rather strange if it weren't able to run against it.
To solve the problem, I had to patch the database (luckily, the user database c:\csvn\data\csvn-production-hsqldb.script is a plain text sql file).
Backup files in c:\csvn\data
Delete csvn-production-hsqldb.script and start the service (should come up now)
Exit the service
Save the file which is automatically recreated now
Compare your old file and the new working one
Replace every line starting with INSERT INTO QRTZ in your database with the corresponding lines from the working copy
Copy the new files to the proper place
Start the service
Hope it worked
I had this problem too. Upgrade to SubversionEdge 5.1.4 solved the issue.
We encounter this problem with CollabNet Subversion Edge 3.3.1 every time we patch our JDK 6 install (e.g. IAVM update). We need to install JDK 7 and 8 on this machine also so the installers are confusing the version information in the Windows Registry (not too much of a surprise there). Even if we update JDK 6 last, it gets weird too.
Nevertheless, it turns out the Subversion Console uses the Windows Registry to locate the Java install to launch the Console service. Updating the registry entry HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion to 1.6 and having a proper install of JDK 1.6 will restore console operation.

Resources