Comments (11)
重新执行 cooking watch
后是否能运行?麻烦贴一下完整的日志
from cooking.
@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.
你看一下 ~/.cooking
是不是 root 权限创建的,如果是的话改一下权限。你是用 sudo 执行过 cooking 么(但是我有过判断如果权限不对会有提示,可能不是这问题)
sudo chown -R $USER:$(id -gn $USER) ~/.cooking
如果还是不对,你把完整的日志发一下,从执行 cooking watch
之后的日志
from cooking.
~/.cooking 不是 root 权限创建的。 我uninstall cooking , 再重装,报错还是一样。
from cooking.
直接把 ~/.cooking
删掉再运行 cooking watch
from cooking.
@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.
@boboxiao
需要使用 Node4 + 以及 NPM3+ 你这里是没使用 NPM3+ 导致的
from cooking.
必须NPM3啊?升级到NPM3,会影响别的么?
from cooking.
@boboxiao
那你可以使用 nvm 或者 n 之类的 Node 版本管理工具。确保 cooking 的项目是在 NPM3 的环境下运行就好了,因为 cooking 使用到了 NPM3 的某些特性。切换到 NPM3 后,把 ~/.cooking
目录删除掉,重新安装并执行 cooking
from cooking.
@QingWei-Li
Thanks ,升级到NPM 3.9后,是乎正常了!
from cooking.
@QingWei-Li
可以了,运行正常!
from cooking.
Related Issues (20)
- 怎么设置cooking编译出的js名称 HOT 2
- cooking build 报错 HOT 1
- use cooking with vue-router on get started use-case HOT 2
- cooking build 报错(新建的vue模板)希望尽快答复,急 HOT 1
- Setting cooking env: remember to prepend process.env. HOT 4
- 打包源码时,不将vue打包进程序中
- No local gulp install found in C:\Program Files\nodejs\node_modules\slush-cooking-vue HOT 2
- 开发多页面应用,v开头的文件名(eg:voted文件)无法编译运行。
- scss load image Module not found: Error: Can't resolve '../../images/xx.png'
- compile error [Extract Text Plugin (Loader) Invalid Options]
- watch与build均无法在ie11下运行
- Error: Cannot find module 'gulp-install' HOT 2
- This is an issue with the `slush-cooking-vue` generator
- 项目里静态的excel文件要如何配置才能打包入dist?
- 想问问设置dist的目录,但是npm run dev 之后但是全局搜索都在不到, 到底这个webserver所运行的目录根目录设置在那里, 十分崩溃
- 想问问设置dist的目录,但是npm run dev 之后但是全局搜索都在不到, 到底这个webserver所运行的目录根目录设置在那里, 十分崩溃
- 如何用es6语法去启动cooking
- [email protected] TypeError: Cannot read property 'query' of undefined at getLoaderWithQuery HOT 1
- 浏览器不刷新
- cooking-cli 在typescript 项目中无法导入es6编写的vue文件
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 cooking.