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

Can not build current master #736

Closed
pichfl opened this issue Nov 15, 2017 · 5 comments
Closed

Can not build current master #736

pichfl opened this issue Nov 15, 2017 · 5 comments

Comments

@pichfl
Copy link

pichfl commented Nov 15, 2017

Trying to build the project at b306318 results in this error when using node (v8.9.0)

npm run build:production

> [email protected] build:production /Users/pichfl/Repositories/ember-inspector
> ember build --environment production && grunt compress:main clean-tmp build-xpi

module.js:538
    throw err;
    ^

Error: Cannot find module 'internal/util/types'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at evalmachine.<anonymous>:31:26
    at Object.<anonymous> (/Users/pichfl/Repositories/ember-inspector/node_modules/ember-cli/node_modules/configstore/node_modules/graceful-fs/fs.js:11:1)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:production: `ember build --environment production && grunt compress:main clean-tmp build-xpi`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/pichfl/.npm/_logs/2017-11-15T10_35_01_965Z-debug.log

and in a different error when using node v4.8.6

❯ npm run build:production

> [email protected] build:production /Users/pichfl/Repositories/ember-inspector
> ember build --environment production && grunt compress:main clean-tmp build-xpi

Future versions of Ember CLI will not support v4.8.6. Please update to Node 0.12 or io.js.
version: 0.2.0

A new version of ember-cli is available (2.16.2). To install it, type ember update.
invalid watchman found, version: [4.9.0] did not satisfy [^3.0.0], falling back to NodeWatcher
BuildingWarning: failed to stat /Users/pichfl/Repositories/ember-inspector/node_modules/defs/node_modules/yargs/node_modules/.bin/window-size
Build failed.
ENOENT: no such file or directory, scandir 'node_modules/ember-cli-ic-ajax/node_modules/'
Error: ENOENT: no such file or directory, scandir 'node_modules/ember-cli-ic-ajax/node_modules/'
    at Error (native)
    at Object.fs.readdirSync (fs.js:808:18)
    at /Users/pichfl/Repositories/ember-inspector/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:32:21
    at Array.map (native)
    at mergeRelativePath (/Users/pichfl/Repositories/ember-inspector/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:30:29)
    at /Users/pichfl/Repositories/ember-inspector/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:23:5
    at tryCatch (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:525:12)
    at invokeCallback (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:538:13)
    at publish (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:508:7)
    at flush (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:2415:5)
    at nextTickCallbackWith0Args (node.js:489:9)
    at process._tickCallback (node.js:418:13)


npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/pichfl/.nvm/versions/node/v4.8.6/bin/node" "/Users/pichfl/.nvm/versions/node/v4.8.6/bin/npm" "run" "build:production"
npm ERR! node v4.8.6
npm ERR! npm  v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build:production: `ember build --environment production && grunt compress:main clean-tmp build-xpi`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:production script 'ember build --environment production && grunt compress:main clean-tmp build-xpi'.
npm ERR! This is most likely a problem with the ember-inspector package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ember build --environment production && grunt compress:main clean-tmp build-xpi
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ember-inspector
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls ember-inspector
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/pichfl/Repositories/ember-inspector/npm-debug.log
@pichfl pichfl changed the title Can not build on current node (v8.9.0) Can not build current master Nov 15, 2017
@teddyzeenny
Copy link
Contributor

Hi, can you please try using yarn for installing and building?

@pichfl
Copy link
Author

pichfl commented Nov 16, 2017

Using Node 4 (yarn 1.3.2)

yarn --ignore-engines; and yarn run build:production
yarn install v1.3.2
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
✨  Done in 35.54s.
yarn run v1.3.2
$ ember build --environment production && grunt compress:main clean-tmp build-xpi
Future versions of Ember CLI will not support v4.8.6. Please update to Node 0.12 or io.js.
version: 0.2.0

A new version of ember-cli is available (2.16.2). To install it, type ember update.
invalid watchman found, version: [4.9.0] did not satisfy [^3.0.0], falling back to NodeWatcher
Build failed.
Path or pattern "vendor/ic-ajax/dist/named-amd/main.js" did not match any files
Error: Path or pattern "vendor/ic-ajax/dist/named-amd/main.js" did not match any files
    at Object.multiGlob (/Users/pichfl/Repositories/ember-inspector/node_modules/broccoli-kitchen-sink-helpers/index.js:204:13)
    at Class.module.exports.CachingWriter.extend._addFiles (/Users/pichfl/Repositories/ember-inspector/node_modules/broccoli-sourcemap-concat/simple-concat.js:82:13)
    at Class.module.exports.CachingWriter.extend.updateCache (/Users/pichfl/Repositories/ember-inspector/node_modules/broccoli-sourcemap-concat/simple-concat.js:50:12)
    at /Users/pichfl/Repositories/ember-inspector/node_modules/broccoli-caching-writer/index.js:92:34
    at tryCatch (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:525:12)
    at invokeCallback (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:538:13)
    at publish (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:508:7)
    at flush (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:2415:5)
    at nextTickCallbackWith0Args (node.js:489:9)
    at process._tickCallback (node.js:418:13)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Using node v6.12.0 (npm v3.10.10) (yarn 1.3.2)

❯ nvm use 6
Now using node v6.12.0 (npm v3.10.10)

~/Repositories/ember-inspector master*
❯ yarn --ignore-engines; and yarn run build:production
yarn install v1.3.2
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
✨  Done in 23.96s.
yarn run v1.3.2
$ ember build --environment production && grunt compress:main clean-tmp build-xpi
(node:6813) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:6813) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Future versions of Ember CLI will not support v6.12.0. Please update to Node 0.12 or io.js.
version: 0.2.0

A new version of ember-cli is available (2.16.2). To install it, type ember update.
invalid watchman found, version: [4.9.0] did not satisfy [^3.0.0], falling back to NodeWatcher
Build failed.
Path or pattern "vendor/ic-ajax/dist/named-amd/main.js" did not match any files
Error: Path or pattern "vendor/ic-ajax/dist/named-amd/main.js" did not match any files
    at Object.multiGlob (/Users/pichfl/Repositories/ember-inspector/node_modules/broccoli-kitchen-sink-helpers/index.js:204:13)
    at Class._addFiles (/Users/pichfl/Repositories/ember-inspector/node_modules/broccoli-sourcemap-concat/simple-concat.js:82:13)
    at Class.updateCache (/Users/pichfl/Repositories/ember-inspector/node_modules/broccoli-sourcemap-concat/simple-concat.js:50:12)
    at /Users/pichfl/Repositories/ember-inspector/node_modules/broccoli-caching-writer/index.js:92:34
    at tryCatch (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:525:12)
    at invokeCallback (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:538:13)
    at publish (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:508:7)
    at flush (/Users/pichfl/Repositories/ember-inspector/node_modules/rsvp/dist/rsvp.js:2415:5)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Using node v8.9.0 (npm v5.5.1) (yarn 1.3.2)

nvm use default
Now using node v8.9.0 (npm v5.5.1)

~/Repositories/ember-inspector master*
❯ which ember
/Users/pichfl/.nvm/versions/node/v8.9.0/bin/ember

~/Repositories/ember-inspector master*
❯ yarn --ignore-engines; and yarn run build:production
yarn install v1.3.2
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
✨  Done in 77.76s.
yarn run v1.3.2
$ ember build --environment production && grunt compress:main clean-tmp build-xpi
module.js:538
    throw err;
    ^

Error: Cannot find module 'internal/util/types'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at evalmachine.<anonymous>:31:26
    at Object.<anonymous> (/Users/pichfl/Repositories/ember-inspector/node_modules/ember-cli/node_modules/configstore/node_modules/graceful-fs/fs.js:11:1)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@teddyzeenny
Copy link
Contributor

This command doesn't exist in current master anymore (it was changed a few versions ago): ember build --environment production && grunt compress:main clean-tmp build-xpi.

Are you sure you're building master and not an old commit?

yarn run build:production is different on master.

@pichfl
Copy link
Author

pichfl commented Nov 17, 2017

@teddyzeenny turns out I had two clones of the Inspector checked out and one was stuck on an ancient commit. (╯°□°)╯︵ ┻━┻

Sorry for the trouble. I checked everything twice but did not realize that Tower points to a different directory than where I was building.

Works now.

@pichfl pichfl closed this as completed Nov 17, 2017
@teddyzeenny
Copy link
Contributor

No worries! Glad it works now 🍻

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