Ember CLI unusable after installing addon - ember-cli

I stupidly tried to install ember-cli-rename using ember install ember-cli-rename. I got a successful message:
Yarn: Installed ember-cli-rename
Installed addon package.
But now ember is unusable. Any command I give it returns
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-rename/lib/commands/rename.js:5:25)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-rename/lib/tasks/generate-file-list.js:8:21)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-rename/lib/tasks/process-move-files.js:8:21)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-mv/lib/commands/move.js:5:22)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-mv/lib/tasks/verify-file.js:8:29)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-mv/lib/tasks/move-file.js:8:21)
DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Required here:
Object.<anonymous> (/Users/me/workspace/my-project/frontend/my-project/node_modules/ember-cli-mv/lib/tasks/update-paths.js:8:20)
Cannot find module 'ember-cli/lib/utilities/string'
Stack Trace and Error Report:
/var/folders/pm/4g51l697zhtl2vj7/T/error.dump.da9acb8bm3zgrpw9sd3.log
How can I undo this problem?

You can also just remove the line
"ember-cli-rename": "0.0.4",
from your package.json then run yarn again. That worked for me.

Related

Can't install Truffle sweet via Powershell on Windows 10. Get mkdirp 5.x deprecated and no more mainetained

When I want to install the Truffle sweet with npm install -g Truffle I get warnings which say that the mkdirp is deprecated and the package is broken and not maintained anymore.
So I think it won't install the truffle sweet.
What should I do to get the broken package fixed?
I am totally new to Ethereum programming.
The PowerShell code:
mkdirp-promise#5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated multicodec#0.5.7: stable api reached

Can't build Visual Studio Code source - "Error: Cannot find module 'gulp-bom'"

I am trying to build Visual Studio Code so the dependencies are compiled in (can't install rpm packages as I don't have root). I have worked through a few issues so far, but I can't figure out why I am getting the following error.
[mrhicks#xxxxxx repo]$ yarn run watch
yarn run v1.12.3
$ gulp watch --max_old_space_size=4095
[20:28:22] Node flags detected: --max_old_space_size=4095
[20:28:22] Respawned to PID: 27503
module.js:550
throw err;
^
Error: Cannot find module 'gulp-bom'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/users/mrhicks/projects/vscode/repo/build/lib/compilation.js:10:13)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I have make sure to re-run sudo npm install to try and ensure everything for npm is installed. I have been following the instructions from the VSCode site here
I had this locally. It went away after yarn add gulp-bom --no-save. 🤷‍♂️
If you applied the changes at https://github.com/addaleax/natives/commit/0abbec6b0e211c6bbe3bf0d2b33fcd68f5a6c980, you'll need to re-apply them after.

Error: Error: Cannot find module 'cucumber'

I am trying to execute a small example of automated test using Webstorm, cucumber and protractor.
I have already installed cucumber using this command within the root of the project:
sudo npm install -g cucumber
I have already created the conf.js file and when running this command within the prompt:
> protractor conf.js
Finally, the output is:
*
[13:13:18] E/launcher - Error: Error: Cannot find module 'cucumber'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.module.exports.load (/Users/alfredo.bazo/node_modules/protractor-cucumber-framework/lib/cucumberLoader.js:19:24)
at Object.<anonymous> (/Users/alfredo.bazo/node_modules/protractor-cucumber-framework/index.js:8:33)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
[13:13:18] E/launcher - Process exited with error code 100
I have no idea what else I can do, any suggestions?
There are two approach to resolve your problem, and recommend to use approach 1).
1) install cucumber as project local package, rather than global package.
npm install -S cucumber
2) install cucumber as global package, and you need to add below Environment variable to tell node.exe where to find and load global package.
NODE_PATH=<npm global package install folder path on your machine>
you can execute npm config get prefix which will print out the global package install folder path.
Important: After add environment variable, you need to try in new opened cmd/terminal window.
how to overcome this :try to share video please regarding this query : ...
install cucumber as global package, and you need to add below Environment variable to tell node.exe where to find and load global package.
NODE_PATH=
you can execute npm config get prefix which will print out the global package install folder path.
Important: After add environment variable, you need to try in new opened cmd/terminal window.

jasmine is not defined

I am trying to run a rest API test on Enide Studio using friby.js and Jasmine.
I got this error:
C:\Users\xxxx\AppData\Roaming\npm\node_modules\frisby\lib\frisby.js:1125
jasmine.Matchers.prototype.toMatchOrBeNull = function(expected) {
^
ReferenceError: jasmine is not defined
at Object.<anonymous> (C:\Users\xxxx\AppData\Roaming\npm\node_modules\frisby\lib\frisby.js:1125:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (C:\Users\xxxx\Desktop\Enide-Studio-2014.17-luna-SR1-win64\ws\SampleProject\.settings\sample_spec.js:4:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
I tried the same script in note pad and ran using CLI, it worked well.
Please help me as I need to run this on a IDE.
I had similar problem after migrating to Jasmine 2.x. It became obvious that 2.x is currently not supported in Frisby.
Although, a frisby fork at https://github.com/m0x72/frisby solves this probelem.
cd node_modules
git clone https://github.com/m0x72/frisby.git
npm install qs
npm install jsonschema
npm install stack-trace
You may include it in your test file as follows:
// var frisby = require('frisby');
var frisby = require('frisby-master');

rake db:migrate depreciated...what do I do?

I tried updating the gems. I discovered the problems after trying to do heroku rake db:migrate and it said:
rake aborted!
no such file to load -- faker
/app/Rakefile:7:in `<top (required)>'
(See full trace by running task with --trace)
Then when I do rake db:migrate it says:
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.12/lib/bundler/shared_helpers.rb:3.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.12/lib/bundler/source.rb:162.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.12/lib/bundler/source.rb:162.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.12/lib/bundler/shared_helpers.rb:84.
Not quite sure what i'm doing wrong.
I figured it out. I'm not sure why this happened all of a sudden randomly but rolling back to an earlier version of rubygems solved the issue. Here's the code:
sudo gem update --system 1.6.2