Giter Site home page Giter Site logo

Comments (11)

QingWei-Li avatar QingWei-Li commented on May 19, 2024

重新执行 cooking watch 后是否能运行?麻烦贴一下完整的日志

from cooking.

bigezhang avatar bigezhang commented on May 19, 2024

@QingWei-Li 重新执行 cooking watch 还不能运行
[cooking] - Failed to read the config.
[cooking] - Error: Cannot find module 'cooking-vue'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at importExtend (/usr/local/lib/node_modules/cooking/util/load-extend.js:8:3)
at /usr/local/lib/node_modules/cooking/util/load-extend.js:38:5
at Array.forEach (native)
at module.exports (/usr/local/lib/node_modules/cooking/util/load-extend.js:29:31)
at Object.exports.set (/usr/local/lib/node_modules/cooking/lib/cooking.js:26:3)
at Object. (/Users/bigezhang/freework/cookvue/my-project/cooking.conf.js:4:9)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)

from cooking.

QingWei-Li avatar QingWei-Li commented on May 19, 2024

你看一下 ~/.cooking 是不是 root 权限创建的,如果是的话改一下权限。你是用 sudo 执行过 cooking 么(但是我有过判断如果权限不对会有提示,可能不是这问题)

sudo chown -R $USER:$(id -gn $USER) ~/.cooking

如果还是不对,你把完整的日志发一下,从执行 cooking watch 之后的日志

from cooking.

bigezhang avatar bigezhang commented on May 19, 2024

~/.cooking 不是 root 权限创建的。 我uninstall cooking , 再重装,报错还是一样。

from cooking.

QingWei-Li avatar QingWei-Li commented on May 19, 2024

直接把 ~/.cooking 删掉再运行 cooking watch

from cooking.

boboxiao avatar boboxiao commented on May 19, 2024

@QingWei-Li
cooking] - generator project
[10:15:15] No local gulp install found in /Users/mac/.cooking/node_modules/slush-cooking-vue
[slush] This is an issue with the slush-cooking-vue generator

from cooking.

QingWei-Li avatar QingWei-Li commented on May 19, 2024

@boboxiao
需要使用 Node4 + 以及 NPM3+ 你这里是没使用 NPM3+ 导致的

from cooking.

boboxiao avatar boboxiao commented on May 19, 2024

必须NPM3啊?升级到NPM3,会影响别的么?

from cooking.

QingWei-Li avatar QingWei-Li commented on May 19, 2024

@boboxiao
那你可以使用 nvm 或者 n 之类的 Node 版本管理工具。确保 cooking 的项目是在 NPM3 的环境下运行就好了,因为 cooking 使用到了 NPM3 的某些特性。切换到 NPM3 后,把 ~/.cooking 目录删除掉,重新安装并执行 cooking

from cooking.

boboxiao avatar boboxiao commented on May 19, 2024

@QingWei-Li
Thanks ,升级到NPM 3.9后,是乎正常了!

from cooking.

boboxiao avatar boboxiao commented on May 19, 2024

@QingWei-Li
可以了,运行正常!

from cooking.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.