Wednesday, 17 May 2017

Npm versioning architecture fatally flawed

I am getting this error from npm:

Browserify Failed!: Path must be a string. Received undefined while parsing file:

Because browserify works fine on other dev environments around the office I pretty sure it is a npm version issue. Most likely related to an older babel-core. (ref https://github.com/babel/grunt-babel/issues/56)

The fix is to update babel-core to at least 6.10. Here is the list for babel-core.

├─┬ babelify@7.3.0
│ └─┬ babel-core@6.24.1
│   └─┬ babel-register@6.24.1
│     └── babel-core@6.24.1
├─┬ laravel-elixir@5.0.0
│ ├─┬ babelify@7.2.0
│ │ └── babel-core@6.7.2
│ └─┬ gulp-babel@6.1.2
│   └── babel-core@6.7.2
└─┬ laravel-elixir-vueify@1.0.6
  └── babel-core@6.7.6

I need to update the copies of babel-core under laravel-elixir only. So how do I do that?



via Patrick_Finucane

No comments:

Post a Comment