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

t2 run/push: built-in whitelist rules should have node_modules/** prefix to ensure they are found at any installation depth below node_modules/ #748

Merged
merged 1 commit into from
May 30, 2016

Conversation

rwaldron
Copy link
Contributor

Issue appears when using npm 3

Signed-off-by: Rick Waldron waldron.rick@gmail.com

…fix to ensure they are found at any installation depth below node_modules/

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
@HipsterBrown
Copy link
Contributor

Would a good smoke test be to run the socket-io example app using npm 3?

@rwaldron
Copy link
Contributor Author

Yeah, definitely

@rwaldron
Copy link
Contributor Author

@HipsterBrown have you had a chance to smoke test?

@HipsterBrown
Copy link
Contributor

@rwaldron Not yet. But I am planning to do that this afternoon.

@HipsterBrown
Copy link
Contributor

Smoke Test:

Went through this socket-io example app test using npm 3.

Got the following output:

Nicks-MacBook-Pro:chat-example hipsterbrown$ t2 run index.js
INFO Looking for your Tessel...
INFO Connected to tessel-router.
INFO Building project.
WARN Pre-compiled module is missing: ws.
This might be caused by any of the following:

1. The binary is platform specific and cannot be compiled for OpenWRT.
2. A pre-compiled binary has not yet been generated for this module.
3. The binary didn't compile correctly for the platform that you're developing on.
    It's possible that the binary is Linux-only or even OpenWRT specific,
    try npm installing with "--force" and rerun your deployment command.

Please file an issue at https://github.com/tessel/t2-cli/issues/new
INFO Writing project to RAM on tessel-router (958.464 kB)...
INFO Deployed.
INFO Running index.js...
listening on *:3000

Successful deploy! 👍

LGTM

@rwaldron
Copy link
Contributor Author

What the hell is that ws message?

@HipsterBrown
Copy link
Contributor

Is there a compiled binary for ws for Tessel?

@rwaldron
Copy link
Contributor Author

¯_(ツ)_/¯

+ pre-gypify --package_name '{name}-{version}-{configuration}.tgz'
/home/vagrant/.nvm/versions/node/v4.4.3/lib/node_modules/pre-gypify/pre-gypify.js:8
  var targetName = data.targets.filter(function (target) {
                       ^

TypeError: Cannot read property 'targets' of undefined
    at /home/vagrant/.nvm/versions/node/v4.4.3/lib/node_modules/pre-gypify/pre-gypify.js:8:24
    at Socket.finish (/home/vagrant/.nvm/versions/node/v4.4.3/lib/node_modules/pre-gypify/node_modules/gyp-reader/gyp-reader.js:35:14)
    at emitNone (events.js:72:20)
    at Socket.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:913:12)
    at nextTickCallbackWith2Args (node.js:442:9)
    at process._tickCallback (node.js:356:17)
Connection to 127.0.0.1 closed.

@HipsterBrown
Copy link
Contributor

@rwaldron So as far as I can tell from searching the engine.io repo, ws is set as a dependency but only used in testing. Reference search

@rwaldron
Copy link
Contributor Author

@HipsterBrown thanks!

@rwaldron rwaldron merged commit 48177d1 into tessel:master May 30, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants