Comments (7)
Hello, what's your npm
version and could your please post the package.json
that includes grunt-jsdoc
?
from grunt-jsdoc.
npm version is 5.6.0.
Here are redacted contents of the package.json which is used to build grunt-jsdoc
. I assume the deps and dev-deps is what you wanted to see, but please let me know if you need more info from the file.
{
...
"dependencies": {
"loglevel": "^1.4.1",
"spin": "0.0.1",
"tinycolor2": "^1.4.1"
},
"devDependencies": {
"catharsis": "^0.7.0",
"express": "^4.13.4",
"grunt": "^0.4.1",
"grunt-browserify": "^5.0.0",
"grunt-cli": "^0.1.9",
"grunt-closure-compiler": "^0.0.21",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-compress": "^0.9.1",
"grunt-contrib-concat": "^0.3.0",
"grunt-contrib-jshint": "^0.8.0",
"grunt-contrib-qunit": "^0.5.0",
"grunt-express-server": "^0.5.3",
"grunt-jsbeautifier": "^0.2.13",
"grunt-jsdoc": "^0.5.4",
"grunt-karma": "^0.12.2",
"grunt-open": "^0.2.3",
"grunt-services": "^0.1.0",
"grunt-shell-spawn": "^0.3.10",
"grunt-text-replace": "^0.4.0",
"grunt-web-server": "^1.2.3",
"jasmine": "^2.4.1",
"karma": "^0.13.0",
"karma-chrome-launcher": "^1.0.1",
"karma-firefox-launcher": "^1.0.0",
"karma-jasmine": "^0.3.8",
"karma-qunit": "^1.1.0",
"marked": "^0.3.6",
"qunitjs": "^1.13.0",
"taffydb": "^2.7.3",
"underscore": "^1.8.3"
}
}
from grunt-jsdoc.
With npm 5.6.0 all your dependencies should have been installed, flattened in the node_modules
folder next to your package.json
. So you should have
package.json
node_modules/
- grunt/
- grunt-jsdoc/
- jsdoc/
- ...
from grunt-jsdoc.
Yes, I do have the required packages installed there (e.g. underscore is the first one that fails dependency check). But if I delete the node_modules folder inside the grunt-jsdoc/node_modules/jsdoc
folder, jsdoc
throws an exception, like this:
$ grunt jsdoc
Running "jsdoc:project1" (jsdoc) task
>> An error occurs in jsdoc process:
>> js: "/opt/git/project1/node_modules/grunt-jsdoc/node_modules/jsdoc/jsdoc.js", line 316: exception
from uncaught JavaScript throw: Error: Module "underscore" not found.
Warning: jsdoc failure Use --force to continue.
Aborted due to warnings.
$ ls ./node_modules/ | grep underscore
underscore
underscore.string
from grunt-jsdoc.
Here is the jsdoc
task entry in Gruntfile.js
jsdoc: {
project1: {
src: ['js/*.js'],
options: {
destination: 'doc',
template: 'docstrap-master/template',
configure: 'docstrap-master/conf.json'
}
}
},
from grunt-jsdoc.
"grunt-jsdoc": "^0.5.4",
is a pretty old version that works only with old versions of npm
and old version of jsdoc
.
You have multiple possibilities :
- Use a previous version of npm
- Update
grunt-jsdoc
to a version still compatible with your other grunt peer dependencies but that supports newernpm
. Check the release history and compatibility sections. - Upgrade all the grunts packages
from grunt-jsdoc.
Thanks for your help! I updated to the latest version of grunt-jsdoc
, and it works properly. Don't know why I didn't think of trying that first.
from grunt-jsdoc.
Related Issues (20)
- Package Deprecated HOT 1
- deprecated [email protected] HOT 1
- Task Events HOT 5
- No source files defined HOT 2
- Event on compilation error HOT 2
- Getting command line too long while running grunt jsdocs as i am having large set of file, i also checked #51,#59 but not able to resolved. HOT 8
- Destination path not working in Grunt HOT 2
- Not adding the README.md file (was working in old versions)
- JSDoc is now in version 3.4.1 which resolves the Github dependency HOT 4
- Include several md files
- Include symbols marked with @private with the "-p" cli argument HOT 3
- JSDoc dependency breaking build HOT 5
- Copying files broken by Node v8.5.0 HOT 2
- Upgrade to jsdoc 3.5.5 HOT 3
- transitive dependency is insecure HOT 1
- Help!!! Why I get syntaxError when run "grunt jsdoc" HOT 1
- Security warning on 'npm audit' due to old dependency marked HOT 1
- grunt-jsdoc duplicate all classes, but command line is Ok HOT 5
- Install not working since months HOT 8
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 grunt-jsdoc.