Comments (13)
I think we should move the bower install phase out of the npm install postinstall hook, and into the cli directly.
In addition we can likely test for this failure and emit a useful error message. (Ideally this is something bower will solve)
from ember-cli.
we should add a trouble shooting section to the guides, to explain this:
(cc @twokul )
from ember-cli.
@stefanpenner confirm
from ember-cli.
I got another git error while creating/initializing a new app:
Installing packages for tooling via npm...
npm ERR! git fetch -a origin (https://github.com/joefiorini/insight.git) error: cannot open FETCH_HEAD: Permission denied
Error: Command failed: error: cannot open FETCH_HEAD: Permission denied
stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: ENOENT, lstat '/Users/mma/src/ember-test/node_modules/broccoli-es6-import-validate/node_modules/lodash/lodash.js'
Dunno if I open another issue for this.
from ember-cli.
@brandnewcode are you behind a firewall?
from ember-cli.
Will be no problem after we switch to @twokul 's leek.
from ember-cli.
@stefanpenner no firewalling and other git commands and repos are working normally in my shell, including cloning that repo in the error message.
from ember-cli.
Ok, I upgraded all my stack (node, npm, git, etc) and it worked. But the problem was ocurring on the Insights installation, which I didn't allow this time.
from ember-cli.
strange... the next version of cli doesn't use insight anymore, rather @twokul's leek, which is simpler and provides more flexibility, If we find issues with it we can alsofix it quickly
from ember-cli.
we are likely doing as good as a job as we can. I have been speaking and working with npm + bower folk to improve the quality of error messages from there tooling. Beyond that, I am unsure what we can do.
from ember-cli.
In 0.29 I just got:
stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: ENOENT, lstat
The interesting part is that the error was thrown when I was in a FAT32 partition, everything worked well in a EXT4 partition. At least thats the only difference I noticed between my two scenarios.
from ember-cli.
Sorry for resurrecting an old bug.
@stefanpenner: So you're saying that the error message is actually coming from npm
/bower
? Is it possible to wrap the child processes and conditionally display a smarter message, sending people to the troubleshooting section in the docs?
Anyway, I encountered this issue on a corporate wi-fi network that blocks port 22. Here's the truncated output:
$ ember new my-new-app
version: 0.1.15
Could not find watchman, falling back to NodeWatcher for file system events
installing
create .bowerrc
...
create vendor/.gitkeep
Installed packages for tooling via npm.
Failed to execute "git ls-remote --tags --heads git://github.com/ember-cli/ember-cli-test-loader.git", exit code of #128
Error: Failed to execute "git ls-remote --tags --heads git://github.com/ember-cli/ember-cli-test-loader.git", exit code of #128
at createError (/usr/local/lib/node_modules/ember-cli/node_modules/bower/lib/util/createError.js:4:15)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/ember-cli/node_modules/bower/lib/util/cmd.js:102:21)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Socket.<anonymous> (child_process.js:979:11)
at Socket.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
from ember-cli.
I've actually taken a proper look into it, and it's actually very easy to hook into lib/tasks/bower-install.js
and add some additional prose .on('error')
. I'll work on writing a test and see if I can get a PR in.
from ember-cli.
Related Issues (20)
- Test against yarn 3 HOT 4
- WARNING: Ember CLI v5.2.0 is not tested against Node v20.4.0. S HOT 4
- ember build --watch fails with '[NodeWrapper:4 /path/to/some/folder] is not a SourceNode' when the app name contains 'ember-data' anywhere HOT 10
- incompatible with bun (or bun is incompatible)
- `test` script should not run `lint:*` scripts HOT 1
- Drop Node 16 in ember-cli 5.4 HOT 4
- Fails to fingerprint in production mode HOT 3
- set `declaration: false` in tsconfig.json for the app blueprint.
- TypeScript error on new project: 'SetupTestOptions' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled. HOT 2
- Run Prettier standalone HOT 2
- fingerprint.prepend not working for the chunk js files HOT 3
- [email protected] has security vulnerability HOT 2
- Setup ESLint for gjs/gts
- You passed the '--typescript' flag but there is no TypeScript blueprint available. A JavaScript blueprint will be generated instead. HOT 7
- new typescript component blueprint gives eslint warning HOT 3
- Fresh app 404's on missing assets/test-support.css HOT 8
- Could it be possible to use `--directory` to output to an already existing directory? HOT 1
- Add a `--no-ci-provider` flag for `ember new`
- App blueprint has invalid ESLint config HOT 4
- Add bun support for Ember CLI projects HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli.