1

We are using grunt.js as a build tool.

On one of our development machines (MacOS Mountain Lion), grunt is running but does not seem to create any files and directories.

Another thing which was different on that specific machine is that when we used the NPM to install some plugins for grunt we had to use sudo npm, otherwise we had permission errors.

We've checked the permissions on the parent directory and tried different things - nothing seemed to work. NodeJs still does not create any files or directories.

Any ideas?

UPDATE:

Apparently the html-compressor grunt plugin requires grunt 1.4 as a dependency.

4

1 回答 1

1

听起来很像权限问题。导航到有问题的目录,然后 ls -l在终端中尝试。应该看起来像这样:

权限示例

如果您的目录没有类似的权限,请将其更改为,例如chmod 775 mydir. sudo需要时使用。

于 2012-12-03T12:18:55.637 回答