开发搭建
1s-MacBook-Air-5:~ a1$ cd github1s-MacBook-Air-5:github a1$ cd Libplate1s-MacBook-Air-5:Libplate a1$ cd ~1s-MacBook-Air-5:~ a1$ ls8.jpg Music dva-quickstart m-project test.diskqueue.meta.dat9.jpg Pictures ffbuild mongo test:nsq_to_file.diskqueue.000000.datApp Public github mynginx test:nsq_to_file.diskqueue.meta.datApplications README.md go mysql test:test-channel.diskqueue.meta.datDesktop StudyDocument home node_modules 备份Documents WeChatProjects iCloud Drive (Archive) nsqd.226.dat 计算机.zipDownloads _book icon nsqd.dat 未知文件.xxxGitBook blogs java package-lock.jsonGolang doc java_error_in_goland.hprof portainerLibrary docker logs profileMovies draw.io m-proj src1s-MacBook-Air-5:~ a1$ mkdir ice1s-MacBook-Air-5:~ a1$ cd ice1s-MacBook-Air-5:ice a1$ ls -latotal 0drwxr-xr-x 2 a1 staff 64 4 15 22:06 .drwxr-xr-x+ 90 a1 staff 2880 4 15 22:06 ..1s-MacBook-Air-5:ice a1$ pwd/Users/a1/ice1s-MacBook-Air-5:ice a1$ lssample1s-MacBook-Air-5:ice a1$ cd sample/1s-MacBook-Air-5:sample a1$ lsREADME.md client node_modules npm-debug.log package.json server1s-MacBook-Air-5:sample a1$ cd client/1s-MacBook-Air-5:client a1$ lsREADME.md build node_modules npm-debug.log package.json public src tests1s-MacBook-Air-5:client a1$ cat package.json
1s-MacBook-Air-5:client a1$ pwd/Users/a1/ice/sample/client1s-MacBook-Air-5:client a1$ node -vv10.15.31s-MacBook-Air-5:client a1$ npm start
异步不允许
This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass --force to build the binding for your current environment.
电脑的问题 node版本 10.15 比较低,在ice 安装的时候自动跳到 6.11.3版本,不知什么原因。
1s-MacBook-Air-5:s2 a1$ node -vv10.15.3
npm ERR! Darwin 17.7.0npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"npm ERR! node v6.11.3npm ERR! npm v3.10.10npm ERR! code ELIFECYCLEnpm ERR! @icedesign/pro-scaffold@1.0.0 start: `ice dev`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the @icedesign/pro-scaffold@1.0.0 start script 'ice dev'.npm ERR! Make sure you have the latest version of node.js and npm installed.npm ERR! If you do, this is most likely a problem with the @icedesign/pro-scaffold package,npm ERR! not with npm itself.npm ERR! Tell the author that this fails on your system:npm ERR! ice devnpm ERR! You can get information on how to open an issue for this project with:npm ERR! npm bugs @icedesign/pro-scaffoldnpm ERR! Or if that isn't available, you can get their info via:npm ERR! npm owner ls @icedesign/pro-scaffoldnpm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:npm ERR! /Users/a1/ice/s2/npm-debug.log
修改过程
1s-MacBook-Air-5:s2 a1$ ls -latotal 56drwxr-xr-x 14 a1 staff 448 4 15 22:36 .drwxr-xr-x 4 a1 staff 128 4 15 22:27 ..-rw-r--r-- 1 a1 staff 197 4 15 22:27 .editorconfig-rw-r--r-- 1 a1 staff 109 4 15 22:27 .eslintignore-rw-r--r-- 1 a1 staff 1553 4 15 22:27 .eslintrc-rw-r--r-- 1 a1 staff 216 4 15 22:27 .gitignore-rw-r--r-- 1 a1 staff 2650 4 15 22:27 README.mddrwxr-xr-x 6 a1 staff 192 4 15 22:27 builddrwxr-xr-x 1122 a1 staff 35904 4 15 22:36 node_modules-rw-r--r-- 1 a1 staff 2969 4 15 22:36 npm-debug.log-rw-r--r-- 1 a1 staff 2806 4 15 22:27 package.jsondrwxr-xr-x 4 a1 staff 128 4 15 22:27 publicdrwxr-xr-x 16 a1 staff 512 4 15 22:27 srcdrwxr-xr-x 3 a1 staff 96 4 15 22:27 tests1s-MacBook-Air-5:s2 a1$1s-MacBook-Air-5:s2 a1$1s-MacBook-Air-5:s2 a1$ rm -rf node_modules1s-MacBook-Air-5:s2 a1$ node -vv10.15.31s-MacBook-Air-5:s2 a1$ npm i
执行结果
1s-MacBook-Air-5:s2 a1$ npm start> @icedesign/pro-scaffold@1.0.0 start /Users/a1/ice/s2> ice device-scripts 1.9.4sassInfo node-sass 4.9.0 (Wrapper) [JavaScript]libsass 3.5.4 (Sass Compiler) [C/C++]info 使用 buildConfig 自定义 entry: src/index.jsinfo --inject-babel: polyfillinfo 使用主题包 @icedesign/theme95% emitting----项目依赖健康检查-----WARN 项目依赖了 hoist-non-react-statics 的两个版本, [ '2.5.5', '3.3.0' ]WARN 项目依赖了 path-to-regexp 的两个版本, [ '2.4.0', '1.7.0' ]100%Starting the development server...- Local: http://localhost:4444/- Network: http://192.168.0.107:4444/Hash: a4dd7119757cf8506fdbVersion: webpack 4.28.4Time: 22724msBuilt at: 2019-04-15 23:01:27Asset Size Chunks Chunk Namescss/1.css 485 bytes 1 [emitted]js/index.js.map 8.84 MiB index [emitted] indexEntrypoint index = css/index.css js/index.js css/index.css.map js/index.js.mapinfo Compiled successfully in 22.7s!Compiling...95% emitting----项目依赖健康检查-----WARN 项目依赖了 hoist-non-react-statics 的两个版本, [ '2.5.5', '3.3.0' ]WARN 项目依赖了 path-to-regexp 的两个版本, [ '2.4.0', '1.7.0' ]100%Hash: 5ec523ca876830aafa46Version: webpack 4.28.4Time: 1638msBuilt at: 2019-04-15 23:02:44Asset Size Chunks Chunk Names1.a4dd7119757cf8506fdb.hot-update.js 901 bytes 1 [emitted]js/index.js.map 8.87 MiB index [emitted] indexEntrypoint index = css/index.css js/index.js index.a4dd7119757cf8506fdb.hot-update.js css/index.css.map js/index.js.map index.a4dd7119757cf8506fdb.hot-update.js.mapinfo Compiled successfully in 1.6s!Compiling...95% emitting----项目依赖健康检查-----WARN 项目依赖了 hoist-non-react-statics 的两个版本, [ '2.5.5', '3.3.0' ]WARN 项目依赖了 path-to-regexp 的两个版本, [ '2.4.0', '1.7.0' ]100%Hash: 532cf698fb3637d869aaVersion: webpack 4.28.4Time: 1876msBuilt at: 2019-04-15 23:03:47Asset Size Chunks Chunk Names4167bb9ab39fb086a5c8.hot-update.json 44 bytes [emitted]js/index.js.map 8.92 MiB index [emitted] indexEntrypoint index = css/index.css js/index.js index.5ec523ca876830aafa46.hot-update.js css/index.css.map js/index.js.map index.5ec523ca876830aafa46.hot-update.js.mapinfo Compiled successfully in 1.9s!
