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

"npm install" doesn't work for ember-cli-jsdoc #19

Closed
ewoody opened this issue Mar 10, 2016 · 14 comments
Closed

"npm install" doesn't work for ember-cli-jsdoc #19

ewoody opened this issue Mar 10, 2016 · 14 comments
Assignees
Labels

Comments

@ewoody
Copy link

ewoody commented Mar 10, 2016

Reproduce path -

  1. ember install ember-cli-jsdoc
  2. delete node_modules
  3. npm install

Expected
Since after step 1, "ember-cli-jsdoc": "1.3.1", is added in package.json, I expected the "npm install" should install ember-cli-jsdoc addon in a clean directory. It is normal for other ember addons, and it is useful for continuous integration build server.

Problem
after npm install on step 3, jsdoc is not installed correctly.

@SpikedKira
Copy link
Contributor

I think step 1 should be npm install ember-cli-jsdoc --save-dev

@notmessenger
Copy link
Collaborator

@SpikedKira That way does not invoke the Ember CLI ecosystem, which you need for the installation of this addon, as it will then leverage the blueprint, so ember install ember-cli-jsdoc is correct.

@ewoody When you say that jsdoc is not installed correctly what are you seeing? Can you provide more details? I just started seeing something weird the other day in a CircleCI environment and am curious of the characteristics you are seeing.

@ewoody
Copy link
Author

ewoody commented Mar 11, 2016

node_modules\ember-cli-jsdoc\node_modules.bin folder doesn't have jsdoc and jsdoc.cmd at all.

@ewoody
Copy link
Author

ewoody commented Mar 11, 2016

  • npm install ember-cli-jsdoc --save-dev - doesn't work. the installed package doesn't have right content in PROJECT\node_modules\ember-cli-jsdoc\node_modules.bin folder. Same problem.
  • ember install doesn't work in our CI server, we got the npm cache error from ember install,
    EPERM: operation not permitted, rename package.json.235057398 to package.json
  • The information from other source, where they expect the npm install should work for this addon, for example, https://www.versioneye.com/nodejs/ember-cli-jsdoc/1.3.1

There is no problem of installation on my local PC, the problem is our CI server can't use "ember install" as a step to build project.

@notmessenger notmessenger self-assigned this Mar 18, 2016
@notmessenger
Copy link
Collaborator

CAUSE

FIX

@notmessenger
Copy link
Collaborator

@ewoody unrelated to what is the root cause of this issue, I'm curious about your comment in #19 (comment) regarding your CI server not being able to use ember install. Are you installing ember addons as part of your build process in your CI environment or was that only in an attempt to diagnose this issue? Because if it is the former this is an unusual configuration, at least from my experience.

@notmessenger notmessenger changed the title "npm install" doesn't work for ember-cli-jsdoc "npm install" doesn't work for ember-cli-jsdoc Mar 19, 2016
@notmessenger
Copy link
Collaborator

https://github.com/softlayer/ember-cli-jsdoc/releases/tag/v1.3.2 has been released to address this issue.

@ewoody
Copy link
Author

ewoody commented Mar 21, 2016

binary files have not been copied in right location by npm install. that is -

the files in PROJECT_FOLDER\node_modules\ember-cli-jsdoc\node_modules.bin

should be copied to

PROJECT_FOLDER\node_modules.bin

so that our CI server doesn't work still.

@notmessenger
Copy link
Collaborator

@ewoody Which version of Node are you using on your CI server? Have you re-ran the build with no cache to ensure you are getting the latest version of this addon?

@ewoody
Copy link
Author

ewoody commented Mar 22, 2016

I have verified that the v1.3.2 works for me after I deleted entire PROJECT_FOLDER\node_modules and re-run npm install.

Thank you for this fix.

@mrryanjohnston
Copy link

mrryanjohnston commented Sep 23, 2016

This issue still exists with v1.4.0.

Steps to reproduce:

  1. Create a new ember project ember new foobar
  2. cd foobar
  3. ember install ember-cli-jsdoc
  4. ember ember-cli-jsdoc
$ ember ember-cli-jsdoc
/bin/sh: node_modules/.bin/jsdoc: No such file or directory

EMBER-CLI-JSDOC: ERRORs have occurred during documentation generation

I can confirm that #19 (comment) does resolve the issue.

@notmessenger
Copy link
Collaborator

I have been able to recreate the scenario outlined in #19 (comment) including how to resolve it.

If when following the same steps instead of running Step 3: ember install ember-cli-jsdoc I run these two commands instead:

  • npm install ember-cli-jsdoc
  • ember g ember-cli-jsdoc (though not entirely necessary to troubleshoot this particular issue)

then the problem no longer occurs.

@mrryanjohnston I am going to reopen this issue and spend some time researching a few more items, which may possibly result in opening an issue with Ember CLI (depending on what some of my current thoughts to research turn up). I will update this issue with appropriate links and information as they occur. Thank you for reporting this behavior.

@notmessenger notmessenger reopened this Sep 25, 2016
@notmessenger
Copy link
Collaborator

Have found this that is sort of related behavior - http://stackoverflow.duapp.com/questions/37142438/npm-node-modules-bin-symlinks

@notmessenger
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants