npm - not installed; illegal characters in path

Beau D'Amore

Inherited a broken NLog project from a long-gone co-worker...

  • VS2015 update 2
  • Latest Node install
  • Latest npm update 3.10.3
  • '.net 5.0' project (pre-core 1.0)

My npm node always says 'npm - not installed'

NPM not installed

When I right click, I instantly get 'illegal characters in path'

enter image description here

here's my package.json

{
"version": "0.0.0",
"name": "asp.net",
"devDependencies": {
    "gulp": "^3.9.0",
    "gulp-bower": "^0.0.11",
    "gulp-concat": "^2.6.0",
    "gulp-install": "^0.6.0",
    "gulp-sass": "^2.1.1",
    "gulp-uglify": "^1.5.1",
    "gulp-util": "^3.0.7",
    "gulp-watch": "^4.3.5",
    "run-sequence": "^1.1.5",
    "browser-sync": "^2.10.0",
    "gulp-filter": "^3.0.1",
    "main-bower-files": "^2.9.0",
    "gulp-rename": "^1.2.2",
    "gulp-sourcemaps": "^1.6.0"
}

here's my project.json:

{
"webroot": "wwwroot",
"version": "1.0.0-*",
"dependencies": {
    "EntityFramework.Commands": "7.0.0-rc1-final",
    "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
    "Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1-final",
    "Microsoft.AspNet.Diagnostics": "1.0.0-rc1-final",
    "Microsoft.AspNet.Diagnostics.Entity": "7.0.0-rc1-final",
    "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-final",
    "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
    "Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
    "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
    "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
    "Microsoft.AspNet.Server.WebListener": "1.0.0-rc1-final",
    "Microsoft.AspNet.Session": "1.0.0-rc1-final",
    "Microsoft.AspNet.SignalR.Server": "3.0.0-rc1-final",
    "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
    "Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final",
    "Microsoft.Extensions.Caching.Memory": "1.0.0-rc1-final",
    "Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
    "Microsoft.Extensions.Logging.NLog": "1.0.0-rc1-final",
    "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final",
    "MvcWebApiCors": "0.3.0"
},
"commands": {
    "web": "Microsoft.AspNet.Server.Kestrel",
    "ef": "EntityFramework.Commands"
},
"frameworks": {
    "dnx451": {
  "dependencies": {
    "Rally.RestApi": "1.0.0-*"
  }
    }
},
"exclude": [
    "wwwroot",
    "node_modules",
    "bower_components"
],
"publishExclude": [
    "node_modules",
    "bower_components",
    "**.kproj",
    "**.user",
    "**.vspscc"
],
"scripts": {
    "postrestore": [ "npm install" ],
    "prepare": [ "gulp" ]
}

Here's my Bower.json

{
"name": "WebApplication",
"private": true,
"dependencies": {
    "bootstrap": "^4.0.0-alpha.2",
    "signalr": "^2.2.0",
    "font-awesome": "^4.5.0",
    "moment": "^2.11.0",
    "Chart-js": "^1.0.2",
    "tether": "^1.1.1",
    "bootstrap-daterangepicker": "2.1.17",
    "handlebars": "^4.0.5",
    "chosen": "^1.4.2"
}

global.json

{
"projects": [
"src",
"wrap"
],
"sdk": {
"version": "1.0.0-rc1-update1"
}

The overall problem is that none of the css/styles are showing. The site looks skeletal compared to what's on our iis box.

Beau D'Amore

Found the answer...

Some packages (for instance webpack) have dependency on packages that are not supported on windows which causes NPM to print warning about it. VS interprets it as generic problem and says that packages are not installed even though in reality this warning should be ignored.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to remove illegal characters from path and filenames?

From Dev

User Agent Causes MVC DisplayFor ArgumentException: Illegal characters in path

From Dev

c# MVC Illegal characters in path

From Dev

Why illegal characters in path?

From Dev

HtmlAgilityPack : illegal characters in path

From Dev

StreamReader path using * - Illegal Characters in Path

From Dev

Powershell WebClient DownloadFile Exception Illegal Characters in Path

From Dev

System.ArgumentException: Illegal characters in path

From Dev

VS 2013 Release Management - Illegal characters in path

From Dev

Illegal characters in path error in XML Deserilation

From Dev

Having issues with illegal characters in file path

From Dev

Check string for illegal characters in path

From Dev

illegal characters in path using powershell

From Dev

Installing nvm for windows : Visual Studio npm debug fails because of illegal characters in path

From Dev

Unable to find illegal Characters in Path

From Dev

Illegal Characters in Path when extracting zip file with C#

From Dev

powershell Copy-Item Illegal characters in path

From Dev

C# - Illegal characters in path

From Dev

Test-Path : Illegal characters in path

From Dev

Youtube downloader: illegal characters in path

From Dev

Assembly::GetExecutingAssembly()->Location now throws ArgumentException: Illegal characters in path

From Dev

Illegal characters in path exception when Transforming XML

From Dev

BinScope and ArgumentException: Illegal characters in path

From Dev

c# MVC Illegal characters in path

From Dev

Powershell WebClient DownloadFile Exception Illegal Characters in Path

From Dev

ZipFile.ExtractToDirectory "Illegal characters in path"

From Dev

illegal characters in path while Deserialise xml?

From Dev

Illegal characters in path error in XML Deserilation

From Dev

Test-Path : Illegal characters in path

Related Related

  1. 1

    How to remove illegal characters from path and filenames?

  2. 2

    User Agent Causes MVC DisplayFor ArgumentException: Illegal characters in path

  3. 3

    c# MVC Illegal characters in path

  4. 4

    Why illegal characters in path?

  5. 5

    HtmlAgilityPack : illegal characters in path

  6. 6

    StreamReader path using * - Illegal Characters in Path

  7. 7

    Powershell WebClient DownloadFile Exception Illegal Characters in Path

  8. 8

    System.ArgumentException: Illegal characters in path

  9. 9

    VS 2013 Release Management - Illegal characters in path

  10. 10

    Illegal characters in path error in XML Deserilation

  11. 11

    Having issues with illegal characters in file path

  12. 12

    Check string for illegal characters in path

  13. 13

    illegal characters in path using powershell

  14. 14

    Installing nvm for windows : Visual Studio npm debug fails because of illegal characters in path

  15. 15

    Unable to find illegal Characters in Path

  16. 16

    Illegal Characters in Path when extracting zip file with C#

  17. 17

    powershell Copy-Item Illegal characters in path

  18. 18

    C# - Illegal characters in path

  19. 19

    Test-Path : Illegal characters in path

  20. 20

    Youtube downloader: illegal characters in path

  21. 21

    Assembly::GetExecutingAssembly()->Location now throws ArgumentException: Illegal characters in path

  22. 22

    Illegal characters in path exception when Transforming XML

  23. 23

    BinScope and ArgumentException: Illegal characters in path

  24. 24

    c# MVC Illegal characters in path

  25. 25

    Powershell WebClient DownloadFile Exception Illegal Characters in Path

  26. 26

    ZipFile.ExtractToDirectory "Illegal characters in path"

  27. 27

    illegal characters in path while Deserialise xml?

  28. 28

    Illegal characters in path error in XML Deserilation

  29. 29

    Test-Path : Illegal characters in path

HotTag

Archive