Having trouble installing ember - node.js

npm install -g ember-cli
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/usr/local/Cellar/node/6.3.1/libexec/npm/bin/ember -> /usr/local/Cellar/node/6.3.1/libexec/npm/lib/node_modules/ember-cli/bin/ember
/usr/local/Cellar/node/6.3.1/libexec/npm/lib
└── ember-cli#2.9.1
The above is the command is what I've used to install ember. But when I type ember -v it shows -bash: ember: command not found.
What am I doing wrong?

Related

Can't install Gulp on node 8.12.0

When I try the sudo npm install --save-dev gulp command, it returns this error:
npm WARN deprecated gulp-util#3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated graceful-fs#3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs#1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN gus#1.0.0 No description
npm WARN gus#1.0.0 No repository field.
I've reinstalled gulp (multiple times) and node (& npm) and it still won't work.
What do I do?
(I'm using macOS 10.13.6 and I installed node via homebrew)
Why are you trying to install with --save-dev?
Installing Gulp globally should be done with --global
Have you checked their installation guide?
https://gulpjs.org/getting-started.html

npm start not working and gulp is deprecate?

First post here. Sorry its so long.
I am trying to contribute towards an open source project on Github. I successfully downloaded and cloned the project. I am using Windows 10 and Node.js version v8.11.2
When I run npm start in my command prompt I get the following error:
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ashley Clarke\AppData\Roaming\npm-cache\_logs\2018-06-06T18_34_45_556Z-debug.log
So I tried to make sure was connected to the gulp server in my Node.js command prompt.
And got this error:
C:\Users\Ashley Clarke>gulp server
[10:59:43] Local gulp not found in ~
[10:59:43] Try running: npm install gulp
Then when I ran npm install gulp this popped up.
C:\Users\Ashley Clarke>npm install gulp -g
npm WARN deprecated gulp-util#3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated graceful-fs#3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs#1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
C:\Users\Ashley Clarke\AppData\Roaming\npm\gulp -> C:\Users\Ashley Clarke\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js
+ gulp#3.9.1
added 255 packages in 45.834s
I tried to go to https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 but it talked about plugins. I guess I'm struggling with understanding what I need to do to connect to the gulp server so I can contribute to this open source project. Thanks!!
P.S tried to add pictures. Thanks in advance.

unable to install node 8 dependencies on ubuntu 16.4

I'm unable to install my project (that works very well under node 6). This is due to a dependency of node 8, that in addition to be deprecated also attempts to write somewhere where it doesn't have permissions.
ubuntu#ip-xxxxxxx:~/share_place/bin$ sudo npm i
npm WARN deprecated node-uuid#1.4.8: Use uuid module instead
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#0.4.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated jade#0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string#0.0.2: to-iso-string has been deprecated, use #segment/to-iso-string instead.
npm WARN deprecated minimatch#0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs#1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b v0.5.5 git://github.com/bookchin/node-ntp-client.git /home/ubuntu/.npm/_cacache/tmp/git-clone-cd074428
npm ERR! /home/ubuntu/.npm/_cacache/tmp/git-clone-cd074428/.git: Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2017-06-15T13_45_37_010Z-debug.log
ubuntu#ip-xxxxx:~/share_place/bin$ node -v
v8.1.2
It's very frustrating for us, since we're developing under windows and mac without issues, but now we're stuck at the preproduction.
Any help would be very welcome, thanks
If npm is running as root (because of sudo), it will drop root privileges right before executing external scripts/programs (like git). By default it will setuid to nobody.
This causes permission issues because nobody is most likely not allowed to write to the directory /home/ubuntu/.npm/_cacache/tmp/git-clone-cd074428/ (hence the "Permission denied" error).
The best solution is to not use sudo at all. In your case, installing only local dependencies, it makes even less sense than the usual situation, where sudo is used to install something globally (-g).
Perhaps you may have to clean up the permissions in /home/ubuntu/.npm/ too, if some files/directories in there now belong to root:
sudo chown -R $USER /home/ubuntu/.npm

algular-cli installation issue with rxjs

I'm tryin' to install angular-cli into my linux Mint 32bit computer. But There's a failure to install it.
My command into terminal is:
npm install -g angular-cli
And the output:
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/home/shwokat/!/.npm-global-me/bin/ng -> /home/shwokat/!/.npm-global-me/lib/node_modules/angular-cli/bin/ng
/home/shwokat/!/.npm-global-me/lib
└─┬ angular-cli#1.0.0-beta.28.3
└── UNMET PEER DEPENDENCY rxjs#^5.0.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules/angular-cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"ia32"})
npm WARN #angular/core#2.4.7 requires a peer of rxjs#^5.0.1 but none was installed.
Please write how to overcome this error & install angular-cli correctly ...
This is an issue with beta 30 of the CLI... the temporary fix is to install rxjs globally to resolve the dependency.
npm install rxjs -g
This has been addressed in the repo and will no longer be an issue with the next release.
UPDATE:
From #frankie4fingers in the comments, you may find success using the specific version:
npm install -g rxjs#5.0.1
I had the same issue, I was trying to install AngularJS 2 CLI using
npm install -g angular-cli
And I got the following warning and dependency error:
npm WARN deprecated angular-cli#1.0.0-beta.28.3: angular-cli has been renamed to #angular/cli. Please update your dependencies.
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/angular-cli
/usr/local/lib
└─┬ angular-cli#1.0.0-beta.28.3
└── UNMET PEER DEPENDENCY rxjs#^5.0.1
So I tried to installing using #angular/cli instead of angular-cli and it worked.
npm install -g #angular/cli
I'm in exactly the same boat. I had a simple angular-cli repo from a couple of months ago, cloned it to a new machine running OSX Sierra, started getting these peer dependency errors when running npm install.
I've tried a fresh project and I can't even install angular-cli. Have tried installing rxjs globally, and by specific version.
While this posts adds little it is intended as corroborating evidence of the issue, and indication that the issue is likely non OS-specific.
[update] Frustratingly, running npm ls -g shows rxjs#5.0.1 is present.

Errors Installing KeystoneJS on OSX

I ran npm install -g generator-keystone from the root directory in OSX but got the following errors:
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated CSSselect#0.4.1: the module is now available as 'css-select'
npm WARN deprecated minimatch#0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated CSSwhat#0.4.7: the module is now available as 'css-what'
When I try and use yo keystone I then get:
-bash: yo: command not found
I did try and update these packages using:
npm update -g minimatch
npm update -g CSSselect
npm update -g CSSwhat
Any advice would be greatly appreciated.
(PS I have Node 4.4.3 and Mongo Shell 3.2.7 installed)
The message you're getting are warnings, not errors. You can ignore them.
It looks like you may have only installed the Keystone generator for Yeoman, but didn't install the yeoman package itself:
$ npm i yo -g
That should provide the yo executable (which generally gets installed in /usr/local/bin).

Resources