grunt-phantomcss icon indicating copy to clipboard operation
grunt-phantomcss copied to clipboard

Installing in node_modules/@micahgodbolt

Open zrothauser opened this issue 9 years ago • 6 comments

When I put this line in package.json:

 "@micahgodbolt/grunt-phantomcss": "^0.4.0"

phantomcss installs in node_modules/@micahgodbolt/grunt-phantomcss, which requires loading it with this, instead of the line provided in the Readme:

grunt.loadNpmTasks('@micahgodbolt/grunt-phantomcss');

Can it be updated so that it installs in node_modules/grunt-phantomcss?

zrothauser avatar Oct 14 '15 19:10 zrothauser

the @micahgodbolt is just the npm namespace. That is the correct way to load that module.

https://docs.npmjs.com/getting-started/scoped-packages

micahgodbolt avatar Oct 15 '15 16:10 micahgodbolt

I also had this issue. The README for this project has:

grunt.loadNpmTasks('grunt-phantomcss');

yet in the comment above, you said the correct way to load the module is via

grunt.loadNpmTasks('@micahgodbolt/grunt-phantomcss');

Can you please confirm which of the two is the correct way? ... or perhaps they are equivalent? I have never used scoped packages so sorry if this is a case of RTFM.

jameslawson avatar Nov 20 '15 12:11 jameslawson

@jameslawson no worries. Not a RTFM moment. I'm realizing that i've been using load-grunt-tasks for so long that I have never had to load a name spaced module by hand.

So first off, I'd highly suggest using load-grunt-tasks as it saves you a ton of headaches.

But if you want to do it manually, can you confirm that grunt.loadNpmTasks('@micahgodbolt/grunt-phantomcss'); works correctly? If so, I'll change the readme.

micahgodbolt avatar Nov 20 '15 16:11 micahgodbolt

I'll confirm that that line works.

zrothauser avatar Nov 21 '15 17:11 zrothauser

If you use: "@micahgodbolt/grunt-phantomcss": "^0.4.0" Then only this line will work: grunt.loadNpmTasks('@micahgodbolt/grunt-phantomcss');

If you use: "grunt-phantomcss": "git://github.com/micahgodbolt/grunt-phantomcss.git" Then you can use: grunt.loadNpmTasks('grunt-phantomcss');

linavegiene avatar Dec 30 '15 15:12 linavegiene

When I try to install:

npm install @micahgodbolt/grunt-phantomcss --save-dev

I'm getting:

npm ERR! unregistered users are not allowed to access package @micahgodbolt/grunt-phantomcss : @micahgodbolt/grunt-phantomcss

Is that because we are using Sinopia proxy?

Why not making direct npm module? :\

thybzi avatar Nov 11 '16 08:11 thybzi