Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install -g [email protected] leads to missing dependency "portastic" #45

Closed
asnowfix opened this issue Sep 19, 2016 · 6 comments
Closed

Comments

@asnowfix
Copy link

Trying to install the latest stable (pre-beta) edgemicro leads to a missing portastic dependency.

$ sudo npm install -g [email protected]
[sudo] password for kowalskif: 
npm WARN engine [email protected]: wanted: {"node":">=5.0.0 <6.0.0"} (current: {"node":"4.4.3","npm":"2.15.1"})

> [email protected] install /usr/local/node-v4.4.3-linux-x64/lib/node_modules/edgemicro/node_modules/dtrace-provider
> node scripts/install.js

/usr/local/node-v4.4.3-linux-x64/bin/edgemicro -> /usr/local/node-v4.4.3-linux-x64/lib/node_modules/edgemicro/cli/edgemicro
[email protected] /usr/local/node-v4.4.3-linux-x64/lib/node_modules/edgemicro
[...]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected])

Then trying to get the help message leads to an error:

$ edgemicro --help
current nodejs version is v4.4.3
module.js:327
    throw err;
    ^

Error: Cannot find module 'portastic'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/node-v4.4.3-linux-x64/lib/node_modules/edgemicro/cli/cmd.js:11:17)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
@asnowfix
Copy link
Author

BTW, same problem with 2.10-beta:

npm ERR! missing: portastic@^1.0.1, required by [email protected]

@asnowfix
Copy link
Author

Going all the way back to 2.0.4 also produces the same result.

@kevinswiber
Copy link
Contributor

@asnowfix Apologies. We've been testing on node v6.x. When this dependency was added (here: ee55209), there was no update to npm-shrinkwrap.json to include portastic. The behavior of NPM appears to have changed when this scenario is encountered. With newer version of NPM (3.x), edgemicro doesn't encounter this issue. I'll work on a fix and get it published.

@kevinswiber
Copy link
Contributor

@asnowfix Please try [email protected] or [email protected]. Thanks.

@asnowfix
Copy link
Author

Works fine: talks & answers ;-)

$ curl http://$(docker-machine ip):8080/basepath
Error: No machine name(s) specified and no "default" machine exists.
{"message":"no match found for /basepath","status":404}

@asnowfix
Copy link
Author

I tried [email protected] using Node.js LTS (a slightly modified container version).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants