GithubHelp home page GithubHelp logo

error about eb-disable-npm HOT 6 OPEN

kodeine avatar kodeine commented on May 29, 2024
error

from eb-disable-npm.

Comments (6)

wearhere avatar wearhere commented on May 29, 2024

How did you reproduce this? Can't tell from the trace

from eb-disable-npm.

danbovey avatar danbovey commented on May 29, 2024

I got this error as well after installing eb-fix-npm or eb-disable-npm.

+ npm install

> [email protected] install <project>/node_modules/eb-disable-npm
> install-files source

path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.join (path.js:1211:7)
    at installFiles (<project>/node_modules/install-files/src/index.js:63:19)
    at Object.<anonymous> (<project>/node_modules/install-files/bin/install-files.js:16:1)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)

from eb-disable-npm.

wearhere avatar wearhere commented on May 29, 2024

What's your OS and Node version?

from eb-disable-npm.

danbovey avatar danbovey commented on May 29, 2024
ubuntu@ip:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.2 LTS
Release:	16.04
Codename:	xenial
ubuntu@ip:~$ node -v
v6.11.0
ubuntu@ip:~$ npm -v
5.6.0

I've seen a lot of comments around these problems with people saying they've moved to docker instead of messing about with ebextensions so that's what I've done too. 💯

from eb-disable-npm.

wearhere avatar wearhere commented on May 29, 2024

I've seen a lot of comments around these problems with people saying they've moved to docker instead of messing about with ebextensions so that's what I've done too.

Oh interesting. Using AWS ECS? Or Docker on Elastic Beanstalk?

Re: the trace, what's weird is that

at installFiles (<project>/node_modules/install-files/src/index.js:63:19)

Corresponds to a blank line in install-files. Can you do npm ls install-files to see what version of install-files your install of eb-disable-npm is using? Over the course of 1.x we've made some fixes to path lookups—perhaps this would be fixed by forcing eb-disable-npm to upgrade to the latest 1.x.

from eb-disable-npm.

danbovey avatar danbovey commented on May 29, 2024

Docker on Elastic Beanstalk


If I run cd install-files && cat package.json quickly before it crashes it says it has downloaded version 1.1.4 of install-files.

from eb-disable-npm.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.