1
我正在嘗試npm install
一個很好的項目的分叉,其中有很多缺陷https://github.com/codyc4321/react-data-components。我們需要自己的副本並進行更改,因此我將其分出並從回購中刪除。使用npm安裝分叉的反應組分庫
cchilders:~/work_projects/myproject (feature/investigate-fixing-react-data-components-table)
$ rm -rf node_modules/react-data-components/
cchilders:~/work_projects/myproject (feature/investigate-fixing-react-data-components-table)
$ atom .
cchilders:~/work_projects/myproject (feature/investigate-fixing-react-data-components-table)
$ npm i https://github.com/codyc4321/react-data-components
[email protected] /Users/cchilders/work_projects/myproject
├── UNMET PEER DEPENDENCY [email protected]
├── UNMET PEER DEPENDENCY [email protected]
└── [email protected] (git+https://github.com/codyc4321/react-data-components.git#bfa230d806c59f4703346a8377b2e1938152cefd)
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of [email protected] - 1.x but none was installed.
npm WARN [email protected] requires a peer of [email protected]^15.5.0 but none was installed.
npm WARN [email protected] No repository field.
cchilders:~/work_projects/myproject (feature/investigate-fixing-react-data-components-table)
$ npm i --save coffee-script react
[email protected] /Users/cchilders/work_projects/myproject
├── [email protected]
└─┬ UNMET PEER DEPENDENCY [email protected]
└── [email protected]
npm WARN [email protected] requires a peer of [email protected] - 1.x but none was installed.
npm WARN [email protected] No repository field.
cchilders:~/work_projects/myproject (feature/investigate-fixing-react-data-components-table)
$ npm i --save coffee-script [email protected]
[email protected] /Users/cchilders/work_projects/myproject
├── [email protected]
└── UNMET PEER DEPENDENCY [email protected]
npm WARN [email protected] requires a peer of [email protected] - 1.x but none was installed.
npm WARN [email protected] No repository field.
cchilders:~/work_projects/myproject (feature/investigate-fixing-react-data-components-table)
$ node server-dev.js
...
ERROR in ./client/components/tables/OrderMetricsDataTable.js
Module not found: Error: Can't resolve 'react-data-components' in '/Users/cchilders/work_projects/myproject/client/components/tables'
@ ./client/components/tables/OrderMetricsDataTable.js 64:16-48
@ ./client/controllers/OrderMetricsController.js
@ ./client/main.js
@ multi webpack-hot-middleware/client ./client/main.js
ERROR in ./client/components/tables/GenericTable.js
Module not found: Error: Can't resolve 'react-data-components' in '/Users/cchilders/work_projects/myproject/client/components/tables'
@ ./client/components/tables/GenericTable.js 67:16-48
@ ./client/controllers/checkoutEventLogController.js
@ ./client/main.js
@ multi webpack-hot-middleware/client ./client/main.js
...
如果我刪除,並與npm i react-data-components
安裝相同的代碼,它的工作原理。該代碼是相同的,因爲我還沒有做出我的更改,我很驚訝同樣的代碼不會安裝。把他的代碼,我們的項目中(而不是在節點模塊)引起了語法錯誤字static
,可能是因爲有一個在他的代碼一些打字稿
如何安裝這個叉子npm
所以我可以更新我的變化,當我使他們?謝謝
hmm。你會碰巧知道這是爲什麼嗎?建議在這裏http://remarkablemark.org/blog/2016/09/19/npm-install-from-github/ – codyc4321