我搞了我在Foundation 6的本地项目,但是我把所有东西放在远程Web服务器上,所以我将项目下载到本地文件夹。当我试图运行foundation watch
时出现错误
sh: /myfolder/node_modules/.bin/gulp: Permission denied
Error: foundation-sites-template@1.0.0 start: `gulp`
Exit status 126
at EventEmitter.<anonymous> (/usr/local/lib/node_modules/foundation-cli/node_modules/npm/lib/utils/lifecycle.js:217:16)
at emitTwo (events.js:100:13)
at EventEmitter.emit (events.js:185:7)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/foundation-cli/node_modules/npm/lib/utils/spawn.js:24:14)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
可修复吗?
答案 0 :(得分:2)
无论您使用何种复制方式,都可能搞砸了/myfolder/node_modules/.bin/gulp
的可执行位。在终端中键入以下内容:
chmod a+x /myfolder/node_modules/.bin/gulp
可能有其他文件存在权限问题,因此最好从头开始删除整个node_modules
文件夹和npm install
。